mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
Custom texture for EN messegeboxes!
This commit is contained in:
parent
6a50eac370
commit
8970eeb62e
3 changed files with 10 additions and 2 deletions
|
|
@ -124,7 +124,6 @@ static VALUE load_protect(VALUE marsh_and_port) {
|
|||
VALUE kernelLoadDataInt(const char *filename, bool rubyExc){
|
||||
VALUE port = fileIntForPath(filename, rubyExc);
|
||||
VALUE marsh = rb_const_get(rb_cObject, rb_intern("Marshal"));
|
||||
|
||||
VALUE args[2] = { marsh, port };
|
||||
int state = 0;
|
||||
VALUE result = rb_protect(load_protect, (VALUE)args, &state);
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ class Window_Base < Window
|
|||
super()
|
||||
@windowskin_name = $game_system.windowskin_name
|
||||
self.windowskin = RPG::Cache.windowskin(@windowskin_name)
|
||||
#self.windowskin_en = RPG::Cache.windowskin("en_normal")
|
||||
self.x = x
|
||||
self.y = y
|
||||
self.width = width
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ class Window_Message < Window_Selectable
|
|||
@choice_start = -1
|
||||
@number_start = -1
|
||||
@skip_message_proc = false
|
||||
$game_system.windowskin_name = "normal"
|
||||
self.active = false
|
||||
self.pause = false
|
||||
self.index = -1
|
||||
|
|
@ -177,7 +178,14 @@ class Window_Message < Window_Selectable
|
|||
face = RPG::Cache.face($game_temp.message_face)
|
||||
self.contents.blt(self.contents.width - 96, 0, face, Rect.new(0, 0, 96, 96))
|
||||
end
|
||||
|
||||
if $game_temp.message_face != nil
|
||||
if $game_temp.message_face.start_with?("en")
|
||||
$game_system.windowskin_name = "en_normal"
|
||||
else
|
||||
$game_system.windowskin_name = "normal"
|
||||
end
|
||||
end
|
||||
|
||||
if $game_temp.choices != nil
|
||||
# Prepare choices, if they fit
|
||||
if lines + $game_temp.choices.size <= 4
|
||||
|
|
|
|||
Loading…
Reference in a new issue