Initial proof of concept commit

This commit is contained in:
Maruno17
2023-08-28 22:41:48 +01:00
parent ea7b5d56d2
commit 1041883992
16 changed files with 1358 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#===============================================================================
#
#===============================================================================
class UIControls::Label < UIControls::BaseControl
attr_reader :label
LABEL_END_X = 80
TEXT_OFFSET_Y = 7
def initialize(width, height, viewport, label)
super(width, height, viewport)
@label = label
end
def label=(value)
@label = value
refresh
end
def refresh
super
draw_text(self.bitmap, 4, TEXT_OFFSET_Y, @label)
end
end