mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 08:02:36 +00:00
Fixed crashes due to removal of 'label' from CyberarmEngine GUI system
This commit is contained in:
@@ -23,10 +23,10 @@ class IMICFPS
|
||||
@camera = PerspectiveCamera.new(aspect_ratio: window.aspect_ratio, position: Vector.new(0, 1.5, 5), orientation: Vector.forward)
|
||||
@camera_controller = CameraController.new(camera: @camera, entity: nil, mode: :fpv)
|
||||
|
||||
label @manifest.name, text_size: 50, text_border: true, text_border_color: Gosu::Color::BLACK
|
||||
label @manifest.model, text_border: true, text_border_color: Gosu::Color::BLACK
|
||||
@camera_position = label "", text_border: true, text_border_color: Gosu::Color::BLACK
|
||||
@camera_orientation = label "", text_border: true, text_border_color: Gosu::Color::BLACK
|
||||
banner @manifest.name, text_size: 50, text_border: true, text_border_color: Gosu::Color::BLACK
|
||||
tagline @manifest.model, text_border: true, text_border_color: Gosu::Color::BLACK
|
||||
@camera_position = tagline "", text_border: true, text_border_color: Gosu::Color::BLACK
|
||||
@camera_orientation = tagline "", text_border: true, text_border_color: Gosu::Color::BLACK
|
||||
|
||||
button "Back" do
|
||||
pop_state
|
||||
|
||||
@@ -32,7 +32,7 @@ class IMICFPS
|
||||
button "New Map", width: 0.64
|
||||
end
|
||||
|
||||
label "Edit Map", width: 1.0, text_align: :center, text_size: 50
|
||||
banner "Edit Map", width: 1.0, text_align: :center, text_size: 50
|
||||
flow(width: 1.0, height: 1.0) do
|
||||
@maps.each do |map|
|
||||
button map.metadata.name do
|
||||
|
||||
Reference in New Issue
Block a user