mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-03-10 18:32:01 +00:00
Implemented list control and basic animation-choosing screen for editor
This commit is contained in:
@@ -85,6 +85,11 @@ class UIControls::BaseControl < BitmapSprite
|
||||
this_bitmap.draw_text(text_x, text_y, text_size.width, text_size.height, this_text, 0)
|
||||
end
|
||||
|
||||
def draw_text_centered(this_bitmap, text_x, text_y, wid, this_text)
|
||||
text_size = this_bitmap.text_size(this_text)
|
||||
this_bitmap.draw_text(text_x, text_y, wid, text_size.height, this_text, 1)
|
||||
end
|
||||
|
||||
# Redraws the control only if it is invalid.
|
||||
def repaint
|
||||
return if !invalid?
|
||||
|
||||
Reference in New Issue
Block a user