mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 13:44:59 +00:00
Anim Editor: added changing of editor settings
This commit is contained in:
@@ -107,13 +107,13 @@ class UIControls::BaseControl < BitmapSprite
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
def draw_text(this_bitmap, text_x, text_y, this_text)
|
||||
text_size = this_bitmap.text_size(this_text)
|
||||
this_bitmap.draw_text(text_x, text_y, text_size.width, text_size.height, this_text, 0)
|
||||
text_size = this_bitmap.text_size(this_text.to_s)
|
||||
this_bitmap.draw_text(text_x, text_y, text_size.width, text_size.height, this_text.to_s, 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)
|
||||
text_size = this_bitmap.text_size(this_text.to_s)
|
||||
this_bitmap.draw_text(text_x, text_y, wid, text_size.height, this_text.to_s, 1)
|
||||
end
|
||||
|
||||
# Redraws the control only if it is invalid.
|
||||
|
||||
@@ -155,7 +155,7 @@ class UIControls::List < UIControls::BaseControl
|
||||
SELECTED_ROW_COLOR
|
||||
)
|
||||
end
|
||||
txt = (val.is_a?(Array)) ? val[1] : val
|
||||
txt = (val.is_a?(Array)) ? val[1] : val.to_s
|
||||
text_color = TEXT_COLOR
|
||||
if txt[/^\\c\[([0-9]+)\]/i]
|
||||
text_colors = [
|
||||
|
||||
Reference in New Issue
Block a user