Class: Yuki::Debug::MainUI

Inherits:
Object show all
Defined in:
scripts/01100 Yuki/02401 Yuki__Debug MainUI.rb

Overview

Main UI of the debugger

Constant Summary collapse

SCREEN_X =

Returns x position of the GUI on the screen.

Returns:

  • (Integer)

    x position of the GUI on the screen

322

Instance Method Summary collapse

Constructor Details

#initialize(viewport) ⇒ MainUI

Create a new MainUI for the debug system

Parameters:

  • viewport (Viewport)

    viewport used to display the UI



10
11
12
13
14
15
16
# File 'scripts/01100 Yuki/02401 Yuki__Debug MainUI.rb', line 10

def initialize(viewport)
  @stack = UI::SpriteStack.new(viewport, SCREEN_X)
  @viewport = viewport
  create_class_text
  create_systag_ui
  create_groups_ui
end

Instance Method Details

#update

Update the gui



19
20
21
22
23
# File 'scripts/01100 Yuki/02401 Yuki__Debug MainUI.rb', line 19

def update
  update_class_text
  update_systag_ui
  update_groups_ui
end