mirror of
https://github.com/TimeCrafters/timecrafters_configuration_tool_desktop.git
synced 2025-12-16 05:42:35 +00:00
Added icon for game clock, updated game clock background image, made game clock background image auto-scale to fit window
This commit is contained in:
@@ -159,7 +159,9 @@ module TAC
|
||||
end
|
||||
|
||||
def draw
|
||||
@background_image.draw(0, 0, -3)
|
||||
background_image_scale = [window.width.to_f / @background_image.width, window.height.to_f / @background_image.height].max
|
||||
|
||||
@background_image.draw(0, 0, -3, background_image_scale, background_image_scale)
|
||||
@particle_emitters.each(&:draw)
|
||||
@clock.draw
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ class Editor < CyberarmEngine::GuiState
|
||||
page(TAC::Pages::DriveTeamRotationGenerator)
|
||||
end
|
||||
|
||||
button get_image("#{TAC::ROOT_PATH}/media/icons/trophy.png"), margin: 4, tip: "Game Clock", image_width: 1.0 do
|
||||
button get_image("#{TAC::ROOT_PATH}/media/icons/custom_stopWatch.png"), margin: 4, tip: "Game Clock", image_width: 1.0 do
|
||||
page(TAC::Pages::GameClock)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user