Interface is now data driven!

This commit is contained in:
2021-11-08 18:17:14 -06:00
parent bbff4b1952
commit ca17b1c2dc
12 changed files with 446 additions and 85 deletions

27
lib/games/ts_reborn.rb Normal file
View File

@@ -0,0 +1,27 @@
class W3DHub
class Games
class TSReborn < Game
def setup
set_name "Tiberian Sun: Reborn"
set_icon "#{GAME_ROOT_PATH}/media/icons/tsr.png"
set_news_feed "https://w3dhub.com/forum/forum/97-tiberian-sun-reborn.xml"
set_background_color 0xff_497331
menu_item(nil, "Game Settings")
menu_item(nil, "Repair Installation")
menu_item(nil, "Uninstall")
menu_item(nil, "Install Folder")
menu_item(nil, "User Data Folder")
menu_item(nil, "View Screenshots")
menu_item(nil, "Discord")
menu_item(nil, "Modifications")
play_item("Play Game")
play_item("Single Player")
set_slot(4)
end
end
end
end