- Joined
- Jun 21, 2015
- Messages
- 1,441
- Reaction score
- 680
- First Language
- Polish
- Primarily Uses
- Other
Welcome Message
Hello everybody!
I'm having a little problem here.
Problem Description
I'm trying to make a window in Scene_Battle, where some information would be shown (variable and stuff - it doesn't matter here).
The thing is, I know how to make a window and it appears in battle scene, but it gets disposed when character's turn comes doesn't appear back.
I'm suspecting MOG's ATB is causing this, but I'm not sure.
Visual Demonstration
Basically, that's how that looks.
And what happens when turn comes:
Summary
As you can see, the window simply disappears and I have no idea how to prevent that. Am I doing something wrong, or it's because of MOG's ATB?
Additional Information
What is in the window is not important - I just want to make a transparent window with some information in it.
References
1) This is the very basic script for my window.
If there's something missing, that causes this - I'd appreciate your help.
2) Just in case here's the MOG's ATB Script + Battle HUD.
There is the whole HUD drawn, so if it's possible to add that information (window) here, then I'd also appreciate your help.
Farewell Message
Does anybody know what causes this and how to prevent that window from disposing?
Thank you in advance.
Origin of Thread
Firstly I asked that question on the other thread ~ And so far I got and tried this, but the same thing happens.
Hello everybody!
I'm having a little problem here.
Problem Description
I'm trying to make a window in Scene_Battle, where some information would be shown (variable and stuff - it doesn't matter here).
The thing is, I know how to make a window and it appears in battle scene, but it gets disposed when character's turn comes doesn't appear back.
I'm suspecting MOG's ATB is causing this, but I'm not sure.
Visual Demonstration
Basically, that's how that looks.
Summary
As you can see, the window simply disappears and I have no idea how to prevent that. Am I doing something wrong, or it's because of MOG's ATB?
Additional Information
What is in the window is not important - I just want to make a transparent window with some information in it.
References
1) This is the very basic script for my window.
#-< ҉ >---< Initialize >----------------------------------------------------class Window_WutWindow < Window_Basedef initialize(x, y)super(x, y, 200, 48)self.opacity = 50refreshend#-< ҉ >---< Draw Content >----------------------------------------------------def refreshself.contents.clearself.contents.draw_text(0, 0, 150, 24, "BOX OF FUN", 0)end # Refreshend # class#-< ҉ >---< Create window in Battle Scene >------------------------------------class Scene_Battle < Scene_Base#-< ҉ >---< Start >---------------------------------------------------------alias wutwindow_start startdef startwutwindow_startcreate_wutwindow_windowend#-< ҉ >---< Create WUT Window >----------------------------------def create_wutwindow_window@wutwindow_window = Window_WutWindow.new(50, 50)endend#=[ ҉ ]===[ END ]===============================================================
2) Just in case here's the MOG's ATB Script + Battle HUD.
There is the whole HUD drawn, so if it's possible to add that information (window) here, then I'd also appreciate your help.
Farewell Message
Does anybody know what causes this and how to prevent that window from disposing?
Thank you in advance.
Origin of Thread
Firstly I asked that question on the other thread ~ And so far I got and tried this, but the same thing happens.
Hello again,
QUESTION: how to create a window in battle scene? I'd like to draw text, numbers, gauges and other stuff in battle scene. *properly*
EXAMPLE: Draw a text and variable next to it for example in the upper-right corner in battle scene.
WHAT I HAVE TRIED: I made a simple window like many others, but in battle scene the window is disposed IDK why when character's turn comes. Is there another more efficient way to do this?
Is there something to add here to prevent that or I need to make it completely in different way? If so, I think I'll create a thread for this.
Thank you in advance.
Maybe like this?
Code:class Scene_Battle < Scene_Base alias :rikifive_random_alias_create_all_windows_4C3n :create_all_windows def create_all_windows rikifive_random_alias_create_all_windows_4C3n create_hud_window end def create_hud_window viewport = Viewport.new viewport.ox = Graphics.width - 100 viewport.z = 150 @hud_window = Window_RikifiveHUD.new @hud_window.viewport = viewport # And maybe add some set_handler's here if your window is selectable ... endendclass Window_RikifiveHUD < Window_Base def initialize super(0, 0, 100, 100) # And other things... endend
Last edited by a moderator:

