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

View File

@@ -0,0 +1,26 @@
class W3DHub
class Games
class ExpansiveCivilianWarfare < Game
def setup
set_name "Expansive Civilian Warfare"
set_icon "#{GAME_ROOT_PATH}/media/icons/ecw.png"
set_news_feed "https://w3dhub.com/forum/forum/208-expansive-civilian-warfare.xml"
set_background_color 0xff_3e5c87
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, "Player Statistics")
play_item("Play Game")
play_item("Single Player")
set_slot(1)
end
end
end
end

25
lib/games/interim_apex.rb Normal file
View File

@@ -0,0 +1,25 @@
class W3DHub
class Games
class InterimApex < Game
def setup
set_name "Interim Apex"
set_icon "#{GAME_ROOT_PATH}/media/icons/ia.png"
set_news_feed "https://w3dhub.com/forum/forum/209-interim-apex.xml"
set_background_color 0xff_034866
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")
play_item("Play Game")
play_item("Single Player")
set_slot(2)
end
end
end
end

View File

@@ -0,0 +1,28 @@
class W3DHub
class Games
class APathBeyond < Game
def setup
set_name "Red Alert: A Path Beyond"
set_icon "#{GAME_ROOT_PATH}/media/icons/apb.png"
set_news_feed "https://w3dhub.com/forum/forum/201-red-alert-a-path-beyond.xml"
set_background_color 0xff_353535
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, "Modifications")
menu_item(nil, "Bug Tracker")
menu_item(nil, "Player Statistics")
play_item("Play Game")
play_item("Single Player")
set_slot(3)
end
end
end
end

24
lib/games/renegade.rb Normal file
View File

@@ -0,0 +1,24 @@
class W3DHub
class Games
class CNCRenegade < Game
def setup
set_name "C&C Renegade"
set_icon "#{GAME_ROOT_PATH}/media/icons/ren.png"
set_news_feed "https://w3dhub.com/forum/forum/231-command-and-conquer-renegade.xml"
set_background_color 0xff_b03f25
menu_item(nil, "Game Settings")
menu_item(nil, "Install Folder")
menu_item(nil, "View Screenshots")
menu_item(nil, "> GET SCRIPTS 4.7 <")
menu_item(nil, "Renegade News")
play_item("Play Game")
play_item("Single Player")
set_slot(0)
end
end
end
end

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