mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
Added header variant of Label control, makde DropdownList control
This commit is contained in:
@@ -77,6 +77,12 @@ class UIControls::ControlsContainer
|
||||
add_control(id, UIControls::Label.new(*control_size(has_label), @viewport, label), has_label)
|
||||
end
|
||||
|
||||
def add_header_label(id, label)
|
||||
ctrl = UIControls::Label.new(*control_size, @viewport, label)
|
||||
ctrl.header = true
|
||||
add_control(id, ctrl)
|
||||
end
|
||||
|
||||
def add_checkbox(id, value, has_label = false)
|
||||
add_control(id, UIControls::Checkbox.new(*control_size(has_label), @viewport, value), has_label)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user