diff --git a/.gitignore b/.gitignore
index 42afabf..4295206 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
-/build
\ No newline at end of file
+\build
+.vscode/c_cpp_properties.json
diff --git a/Assets/Scripts/Core/options.lua b/Assets/Scripts/Core/options.lua
index e402e8d..14e245b 100644
--- a/Assets/Scripts/Core/options.lua
+++ b/Assets/Scripts/Core/options.lua
@@ -16,6 +16,7 @@ mappings = {
{bind = 12, trigger = 0, action = true, bindType = 1, inOptions = true},
{bind = 13, trigger = 1, action = true, bindType = 1, inOptions = true},
{bind = 14, trigger = 72, action = true, bindType = 0, inOptions = true},
+ -- The triggers for 15 and 16, zoom in and out used to be 0 but I changed them to +/= and -
{bind = 15, trigger = 61, action = true, bindType = 0, inOptions = true},
{bind = 16, trigger = 45, action = true, bindType = 0, inOptions = true},
{bind = 17, trigger = 341, action = true, bindType = 0, inOptions = true},
@@ -35,6 +36,7 @@ mappings = {
{bind = 31, trigger = 57, action = true, bindType = 0, inOptions = true},
{bind = 32, trigger = 66, action = true, bindType = 0, inOptions = true},
{bind = 33, trigger = 256, action = true, bindType = 0, inOptions = true},
+ {bind = 53, trigger = 81, action = true, bindType = 0, inOptions = true}, -- wasn't sure if it should be in options
{bind = 47, trigger = 69, action = true, bindType = 0, inOptions = false},
{bind = 48, trigger = 84, action = true, bindType = 0, inOptions = false},
{bind = 49, trigger = 89, action = true, bindType = 0, inOptions = false},
@@ -70,3 +72,6 @@ audio = {
sfxVolume = 100,
musicVolume = 100,
}
+multiplayer = {
+ name = "Player"
+}
diff --git a/Assets/Scripts/GameObjects/Units/unitData.lua b/Assets/Scripts/GameObjects/Units/unitData.lua
index b9c0b02..f9f9d49 100644
--- a/Assets/Scripts/GameObjects/Units/unitData.lua
+++ b/Assets/Scripts/GameObjects/Units/unitData.lua
@@ -189,6 +189,7 @@ units = {
hitboxOffset = {x = 0, y = 4.5, z = 0},
lineOfSight = 25,
name = 'Mech',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Mechs/',
meshPath = 'acsMech.xml',
albedoPath = 'mech.jpg',
@@ -267,6 +268,7 @@ units = {
hitboxOffset = {x = 0, y = 3.02, z = .16},
lineOfSight = 25,
name = 'Mech',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Mechs/',
meshPath = 'aincMech.xml',
albedoPath = 'mech.jpg',
@@ -345,6 +347,7 @@ units = {
hitboxOffset = {x = 0, y = 4.27, z = .13},
lineOfSight = 25,
name = 'Mech',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Mechs/',
meshPath = 'erMech.xml',
albedoPath = 'mech.jpg',
@@ -406,6 +409,7 @@ units = {
hitboxOffset = {x = 0, y = 5.46, z = .86},
lineOfSight = 75,
name = 'Tank',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Tanks/',
meshPath = 'acsTank.xml',
albedoPath = 'tank.jpg',
@@ -467,6 +471,7 @@ units = {
hitboxOffset = {x = 0, y = 3.31, z = 0},
lineOfSight = 75,
name = 'Tank',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Tanks/',
meshPath = 'aincTank.xml',
albedoPath = 'tank.jpg',
@@ -531,6 +536,7 @@ units = {
hitboxOffset = {x = 0, y = 5.27, z = .26},
lineOfSight = 75,
name = 'Tank',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Tanks/',
meshPath = 'erTank.xml',
albedoPath = 'tank.jpg',
@@ -590,6 +596,7 @@ units = {
hitboxOffset = {x = 0, y = 7.69, z = .71},
lineOfSight = 90,
name = 'Artillery',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Artillery/',
meshPath = 'acsArtillery.xml',
albedoPath = 'artillery.jpg',
@@ -651,6 +658,7 @@ units = {
hitboxOffset = {x = 0, y = 7, z = 1.3},
lineOfSight = 90,
name = 'Artillery',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Artillery/',
meshPath = 'aincArtillery.xml',
albedoPath = 'artillery.jpg',
@@ -713,6 +721,7 @@ units = {
hitboxOffset = {x = 0, y = 1, z = 0},
lineOfSight = 30,
name = 'Artillery',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Artillery/',
meshPath = 'artillery.xml',
albedoPath = 'artillery.jpg',
@@ -749,6 +758,7 @@ units = {
hitboxOffset = {x = 0, y = 1.21, z = 0},
lineOfSight = 200,
name = 'Engineer',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Engineers/',
albedoPath = 'engineer.jpg',
colorNodes = {'Cube'},
@@ -779,7 +789,21 @@ units = {
{id = UnitId.POINT_DEFENSE, iconPath = 'Icons/Buttons/GameObjects/pointDefense.png', buildable = true, trigger = 80},
{id = UnitId.EXTRACTOR, iconPath = 'Icons/Buttons/GameObjects/extractor.png', buildable = true, trigger = 69},
},
- abilityButtons = {{buttonType = ButtonType.ORDER, name = 'Hack', orderType = OrderType.HACK}},
+ abilityButtons = {
+ {
+ buttonType = ButtonType.ORDER,
+ name = 'Hack',
+ orderType = OrderType.HACK,
+ tooltip = {
+ size = {x = 220, y = 60},
+ lines = {
+ {entry = {text = 'Hack'}},
+ {entry = {text = 'Hack into a hostile unit'}},
+ {entry = {text = 'to turn it over to your side'}},
+ }
+ }
+ }
+ },
unitClass = UnitClass.CYBORG_ENGINEER,
unitType = UnitType.LAND,
armor = {ArmorType.MECHANIC},
@@ -794,6 +818,7 @@ units = {
hitboxOffset = {x = .178, y = 3.27, z = 0},
lineOfSight = 150,
name = 'Engineer',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Engineers/',
albedoPath = 'engineer.jpg',
colorNodes = {'Engineer_Asia.001'},
@@ -830,6 +855,7 @@ units = {
hitboxOffset = {x = 0, y = 1.02, z = .19},
lineOfSight = 200,
name = 'Engineer',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Engineers/',
albedoPath = 'engineer.jpg',
colorNodes = {'EngineerAM.001'},
@@ -860,7 +886,21 @@ units = {
{id = UnitId.POINT_DEFENSE, iconPath = 'Icons/Buttons/GameObjects/pointDefense.png', buildable = true, trigger = 80},
{id = UnitId.EXTRACTOR, iconPath = 'Icons/Buttons/GameObjects/extractor.png', buildable = true, trigger = 69},
},
- abilityButtons = {{buttonType = ButtonType.ORDER, name = 'Hack', orderType = OrderType.HACK}},
+ abilityButtons = {
+ {
+ buttonType = ButtonType.ORDER,
+ name = 'Hack',
+ orderType = OrderType.HACK,
+ tooltip = {
+ size = {x = 220, y = 60},
+ lines = {
+ {entry = {text = 'Hack'}},
+ {entry = {text = 'Hack into a hostile unit'}},
+ {entry = {text = 'to turn it over to your side'}},
+ }
+ }
+ }
+ },
unitClass = UnitClass.CYBORG_ENGINEER,
unitType = UnitType.LAND,
armor = {ArmorType.MECHANIC},
@@ -875,6 +915,7 @@ units = {
hitboxOffset = {x = 0, y = 2.83, z = .4},
lineOfSight = 150,
name = 'Engineer',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Engineers/',
albedoPath = 'engineer.jpg',
colorNodes = {'Cube.001'},
@@ -911,6 +952,7 @@ units = {
hitboxOffset = {x = 0, y = 1.41, z = 1},
lineOfSight = 200,
name = 'Engineer',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Engineers/',
albedoPath = 'engineer.jpg',
colorNodes = {'Cube.001'},
@@ -941,7 +983,21 @@ units = {
{id = UnitId.POINT_DEFENSE, iconPath = 'Icons/Buttons/GameObjects/pointDefense.png', buildable = true, trigger = 80},
{id = UnitId.EXTRACTOR, iconPath = 'Icons/Buttons/GameObjects/extractor.png', buildable = true, trigger = 69},
},
- abilityButtons = {{buttonType = ButtonType.ORDER, name = 'Hack', orderType = OrderType.HACK}},
+ abilityButtons = {
+ {
+ buttonType = ButtonType.ORDER,
+ name = 'Hack',
+ orderType = OrderType.HACK,
+ tooltip = {
+ size = {x = 220, y = 60},
+ lines = {
+ {entry = {text = 'Hack'}},
+ {entry = {text = 'Hack into a hostile unit'}},
+ {entry = {text = 'to turn it over to your side'}},
+ }
+ }
+ }
+ },
unitClass = UnitClass.CYBORG_ENGINEER,
unitType = UnitType.LAND,
armor = {ArmorType.MECHANIC},
@@ -956,6 +1012,7 @@ units = {
hitboxOffset = {x = 0, y = 2.9, z = .55},
lineOfSight = 150,
name = 'Engineer',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Engineers/',
albedoPath = 'engineer.jpg',
colorNodes = {'Rig.001'},
@@ -1048,6 +1105,7 @@ units = {
lineOfSight = 5,
colorNodes = {'Cube.002'},
name = 'Transport',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Transports/',
meshPath = 'acsTransport.xml',
albedoPath = 'transport.jpg',
@@ -1127,6 +1185,7 @@ units = {
lineOfSight = 5,
colorNodes = {'turret'},
name = 'Transport',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Transports/',
meshPath = 'aincTransport.xml',
albedoPath = 'transport.jpg',
@@ -1220,9 +1279,51 @@ units = {
{
weapons = {},
abilityButtons = {
- {buttonType = ButtonType.ORDER, name = 'Supply', orderType = OrderType.SUPPLY},
- {buttonType = ButtonType.ORDER, name = 'Load', orderType = OrderType.LOAD},
- {buttonType = ButtonType.ORDER, name = 'Unload', orderType = OrderType.UNLOAD},
+ {
+ buttonType = ButtonType.ORDER,
+ name = 'Supply',
+ orderType = OrderType.SUPPLY,
+ tooltip = {
+ size = {x = 210, y = 60},
+ lines = {
+ {entry = {text = 'Supply'}},
+ {entry = {text = 'Begin collecting refineds'}},
+ {entry = {text = 'from an extractor'}},
+ }
+ }
+ },
+ {
+ buttonType = ButtonType.ORDER,
+ name = 'Load',
+ orderType = OrderType.LOAD,
+ tooltip = {
+ size = {x = 290, y = 120},
+ lines = {
+ {entry = {text = 'Load'}},
+ {entry = {text = 'Load the cargo ship with the'}},
+ {entry = {text = 'corresponding resource. Can load:'}},
+ {entry = {text = 'from refineries'}, icons = {{charId = 0, path = 'Resources/refineds.png'}}},
+ {entry = {text = 'from trade centers'}, icons = {{charId = 0, path = 'Resources/wealth.png'}}},
+ {entry = {text = 'from labs'}, icons = {{charId = 0, path = 'Resources/research.png'}}},
+ }
+ }
+ },
+ {
+ buttonType = ButtonType.ORDER,
+ name = 'Unload',
+ orderType = OrderType.UNLOAD,
+ tooltip = {
+ size = {x = 320, y = 120},
+ lines = {
+ {entry = {text = 'Unload'}},
+ {entry = {text = 'Unload the cargo ship with the'}},
+ {entry = {text = 'corresponding resource. Can unload:'}},
+ {entry = {text = 'to refineries'}, icons = {{charId = 0, path = 'Resources/refineds.png'}}},
+ {entry = {text = 'to trade centers'}, icons = {{charId = 0, path = 'Resources/wealth.png'}}},
+ {entry = {text = 'to labs'}, icons = {{charId = 0, path = 'Resources/research.png'}}},
+ }
+ }
+ }
},
unitClass = UnitClass.RESOURCE_ROVER,
unitType = UnitType.HOVER,
@@ -1240,6 +1341,7 @@ units = {
hitboxOffset = {x = 0, y = 2.65, z = 0},
lineOfSight = 5,
name = 'Cargo ship',
+ description = '',
colorNodes = {'Cargo'},
basePath = PATH .. vehiclePrefix .. 'Cargoships/',
meshPath = 'acsCargoShip.xml',
@@ -1255,9 +1357,51 @@ units = {
{
weapons = {},
abilityButtons = {
- {buttonType = ButtonType.ORDER, name = 'Supply', orderType = OrderType.SUPPLY},
- {buttonType = ButtonType.ORDER, name = 'Load', orderType = OrderType.LOAD},
- {buttonType = ButtonType.ORDER, name = 'Unload', orderType = OrderType.UNLOAD},
+ {
+ buttonType = ButtonType.ORDER,
+ name = 'Supply',
+ orderType = OrderType.SUPPLY,
+ tooltip = {
+ size = {x = 210, y = 60},
+ lines = {
+ {entry = {text = 'Supply'}},
+ {entry = {text = 'Begin collecting refineds'}},
+ {entry = {text = 'from an extractor'}},
+ }
+ }
+ },
+ {
+ buttonType = ButtonType.ORDER,
+ name = 'Load',
+ orderType = OrderType.LOAD,
+ tooltip = {
+ size = {x = 290, y = 120},
+ lines = {
+ {entry = {text = 'Load'}},
+ {entry = {text = 'Load the cargo ship with the'}},
+ {entry = {text = 'corresponding resource. Can load:'}},
+ {entry = {text = 'from refineries'}, icons = {{charId = 0, path = 'Resources/refineds.png'}}},
+ {entry = {text = 'from trade centers'}, icons = {{charId = 0, path = 'Resources/wealth.png'}}},
+ {entry = {text = 'from labs'}, icons = {{charId = 0, path = 'Resources/research.png'}}},
+ }
+ }
+ },
+ {
+ buttonType = ButtonType.ORDER,
+ name = 'Unload',
+ orderType = OrderType.UNLOAD,
+ tooltip = {
+ size = {x = 320, y = 120},
+ lines = {
+ {entry = {text = 'Unload'}},
+ {entry = {text = 'Unload the cargo ship with the'}},
+ {entry = {text = 'corresponding resource. Can unload:'}},
+ {entry = {text = 'to refineries'}, icons = {{charId = 0, path = 'Resources/refineds.png'}}},
+ {entry = {text = 'to trade centers'}, icons = {{charId = 0, path = 'Resources/wealth.png'}}},
+ {entry = {text = 'to labs'}, icons = {{charId = 0, path = 'Resources/research.png'}}},
+ }
+ }
+ }
},
unitClass = UnitClass.RESOURCE_ROVER,
unitType = UnitType.HOVER,
@@ -1275,6 +1419,7 @@ units = {
hitboxOffset = {x = 0, y = 2.65, z = 0},
lineOfSight = 5,
name = 'Cargo ship',
+ description = '',
colorNodes = {'Cargo'},
basePath = PATH .. vehiclePrefix .. 'Cargoships/',
meshPath = 'aincCargoShip.xml',
@@ -1290,9 +1435,51 @@ units = {
{
weapons = {},
abilityButtons = {
- {buttonType = ButtonType.ORDER, name = 'Supply', orderType = OrderType.SUPPLY},
- {buttonType = ButtonType.ORDER, name = 'Load', orderType = OrderType.LOAD},
- {buttonType = ButtonType.ORDER, name = 'Unload', orderType = OrderType.UNLOAD},
+ {
+ buttonType = ButtonType.ORDER,
+ name = 'Supply',
+ orderType = OrderType.SUPPLY,
+ tooltip = {
+ size = {x = 210, y = 60},
+ lines = {
+ {entry = {text = 'Supply'}},
+ {entry = {text = 'Begin collecting refineds'}},
+ {entry = {text = 'from an extractor'}},
+ }
+ }
+ },
+ {
+ buttonType = ButtonType.ORDER,
+ name = 'Load',
+ orderType = OrderType.LOAD,
+ tooltip = {
+ size = {x = 290, y = 120},
+ lines = {
+ {entry = {text = 'Load'}},
+ {entry = {text = 'Load the cargo ship with the'}},
+ {entry = {text = 'corresponding resource. Can load:'}},
+ {entry = {text = 'from refineries'}, icons = {{charId = 0, path = 'Resources/refineds.png'}}},
+ {entry = {text = 'from trade centers'}, icons = {{charId = 0, path = 'Resources/wealth.png'}}},
+ {entry = {text = 'from labs'}, icons = {{charId = 0, path = 'Resources/research.png'}}},
+ }
+ }
+ },
+ {
+ buttonType = ButtonType.ORDER,
+ name = 'Unload',
+ orderType = OrderType.UNLOAD,
+ tooltip = {
+ size = {x = 320, y = 120},
+ lines = {
+ {entry = {text = 'Unload'}},
+ {entry = {text = 'Unload the cargo ship with the'}},
+ {entry = {text = 'corresponding resource. Can unload:'}},
+ {entry = {text = 'to refineries'}, icons = {{charId = 0, path = 'Resources/refineds.png'}}},
+ {entry = {text = 'to trade centers'}, icons = {{charId = 0, path = 'Resources/wealth.png'}}},
+ {entry = {text = 'to labs'}, icons = {{charId = 0, path = 'Resources/research.png'}}},
+ }
+ }
+ }
},
unitClass = UnitClass.RESOURCE_ROVER,
unitType = UnitType.HOVER,
@@ -1310,6 +1497,7 @@ units = {
hitboxOffset = {x = 0, y = 2.65, z = 0},
lineOfSight = 5,
name = 'Cargo ship',
+ description = '',
colorNodes = {'Cargo'},
basePath = PATH .. vehiclePrefix .. 'Cargoships/',
meshPath = 'erCargoShip.xml',
@@ -1418,6 +1606,7 @@ units = {
lineOfSight = 50,
colorNodes = {'AATuret'},
name = 'Assault cruiser',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Cruisers/',
meshPath = 'heavyAssaultCruiser.xml',
albedoPath = 'cruiser.jpg',
@@ -1536,6 +1725,7 @@ units = {
lineOfSight = 5,
colorNodes = {'frontAATurret', 'rearAATurret'},
name = 'Assault cruiser',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Cruisers/',
meshPath = 'mediumAssaultCruiser.xml',
albedoPath = 'cruiser.jpg',
@@ -1649,6 +1839,7 @@ units = {
lineOfSight = 5,
colorNodes = {'aaTurret'},
name = 'Assault cruiser',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Cruisers/',
meshPath = 'lightAssaultCruiser.xml',
albedoPath = 'cruiser.jpg',
@@ -1739,6 +1930,7 @@ units = {
lineOfSight = 100,
colorNodes = {'FrontTurret', 'RearTurret'},
name = 'Anti sub cruiser',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Cruisers/',
meshPath = 'acsAntiSubCruiser.xml',
albedoPath = 'cruiser.jpg',
@@ -1865,6 +2057,7 @@ units = {
lineOfSight = 100,
colorNodes = {'sides'},
name = 'Anti sub cruiser',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Cruisers/',
meshPath = 'aincAntiSubCruiser.xml',
albedoPath = 'cruiser.jpg',
@@ -2020,6 +2213,7 @@ units = {
lineOfSight = 100,
colorNodes = {'Gunship.001'},
name = 'Anti sub cruiser',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Cruisers/',
meshPath = 'erAntiSubCruiser.xml',
albedoPath = 'cruiser.jpg',
@@ -2071,6 +2265,7 @@ units = {
hitboxOffset = {x = 0, y = 1.8, z = -1.3},
lineOfSight = 50,
name = 'Missile submarine',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Submarines/',
meshPath = 'acsMissileSubmarine.xml',
albedoPath = 'submarine.jpg',
@@ -2175,6 +2370,7 @@ units = {
hitboxOffset = {x = 0, y = 2.29, z = -1.09},
lineOfSight = 500,
name = 'Missile submarine',
+ description = '',
basePath = PATH .. vehiclePrefix .. 'Submarines/',
meshPath = 'erMissileSubmarine.xml',
albedoPath = 'submarine.jpg',
@@ -2214,6 +2410,7 @@ units = {
hitboxOffset = {x = 0, y = 1.8, z = -1.3},
lineOfSight = 0,
name = 'Stealth submarine',
+ description = '',
colorNodes = {'Cube.001'},
basePath = PATH .. vehiclePrefix .. 'Submarines/',
meshPath = 'acsSubmarine.xml',
@@ -2253,6 +2450,7 @@ units = {
size = {x = 8.32, y = 12.1, z = 57.4},
lineOfSight = 0,
name = 'Stealth submarine',
+ description = '',
colorNodes = {'Cube.001'},
basePath = PATH .. vehiclePrefix .. 'Submarines/',
meshPath = 'aincSubmarine.xml',
@@ -2295,6 +2493,7 @@ units = {
size = {x = 5.37, y = 7.66, z = 43},
lineOfSight = 0,
name = 'Stealth submarine',
+ description = '',
colorNodes = {'Sphere.001'},
basePath = PATH .. vehiclePrefix .. 'Submarines/',
meshPath = 'erSubmarine.xml',
@@ -2318,6 +2517,7 @@ units = {
hitboxOffset = {x = 0, y = 6.7, z = 0},
lineOfSight = 25,
name = 'Icebreaker',
+ description = '',
colorNodes = {'Cube.001'},
basePath = PATH .. vehiclePrefix .. 'Icebreakers/',
meshPath = 'acsIcebreaker.xml',
@@ -2341,6 +2541,7 @@ units = {
hitboxOffset = {x = 0, y = 7.6, z = 5.88},
lineOfSight = 25,
name = 'Icebreaker',
+ description = '',
colorNodes = {'Cube.001'},
basePath = PATH .. vehiclePrefix .. 'Icebreakers/',
meshPath = 'aincIcebreaker.xml',
@@ -2364,6 +2565,7 @@ units = {
hitboxOffset = {x = 0, y = 6.71, z = 5.95},
lineOfSight = 25,
name = 'Icebreaker',
+ description = '',
colorNodes = {'Cube.001'},
basePath = PATH .. vehiclePrefix .. 'Icebreakers/',
meshPath = 'erIcebreaker.xml',
@@ -2414,6 +2616,7 @@ units = {
hitboxOffset = {x = 0, y = 4.7, z = 0},
lineOfSight = 25,
name = 'Freezer',
+ description = '',
colorNodes = {'CryoGun'},
basePath = PATH .. vehiclePrefix .. 'Freezers/',
meshPath = 'freezer.xml',
@@ -2458,6 +2661,7 @@ units = {
hitboxOffset = {x = 0, y = 1.13, z = 1.83},
lineOfSight = 25,
name = 'EMP boat',
+ description = '',
colorNodes = {'turret'},
basePath = PATH .. vehiclePrefix .. 'EMPShips/',
meshPath = 'empShip.xml',
@@ -2491,6 +2695,7 @@ units = {
lineOfSight = 5,
colorNodes = {'ring'},
name = 'Land factory',
+ description = '',
albedoPath = 'factory.jpg',
basePath = PATH .. structurePrefix .. 'LandFactories/',
meshPath = 'acsFactory.xml',
@@ -2518,6 +2723,7 @@ units = {
lineOfSight = 5,
colorNodes = {'Cube.002'},
name = 'Land factory',
+ description = '',
albedoPath = 'factory.jpg',
basePath = PATH .. structurePrefix .. 'LandFactories/',
meshPath = 'aincFactory.xml',
@@ -2545,6 +2751,7 @@ units = {
lineOfSight = 5,
colorNodes = {'Sphere.001'},
name = 'Land factory',
+ description = '',
albedoPath = 'factory.jpg',
basePath = PATH .. structurePrefix .. 'LandFactories/',
meshPath = 'erFactory.xml',
@@ -2572,6 +2779,7 @@ units = {
hitboxOffset = {x = 0, y = 28.4, z = -29},
lineOfSight = 5,
name = 'Naval factory',
+ description = '',
basePath = PATH .. structurePrefix .. 'NavalFactories/',
meshPath = 'acsFactory.xml',
colorNodes = {'stripes'},
@@ -2600,6 +2808,7 @@ units = {
hitboxOffset = {x = 0, y = 18, z = 0},
lineOfSight = 5,
name = 'Naval factory',
+ description = '',
colorNodes = {'roof'},
basePath = PATH .. structurePrefix .. 'NavalFactories/',
meshPath = 'aincFactory.xml',
@@ -2630,6 +2839,7 @@ units = {
hitboxOffset = {x = 0, y = 10, z = -14},
lineOfSight = 5,
name = 'Naval factory',
+ description = '',
colorNodes = {'building'},
basePath = PATH .. structurePrefix .. 'NavalFactories/',
meshPath = 'erFactory.xml',
@@ -2641,10 +2851,46 @@ units = {
unitClass = UnitClass.TRADE_CENTER,
unitType = UnitType.LAND,
abilityButtons = {
- {buttonType = ButtonType.BUY_REFINEDS, name = 'Buy ref', trigger = 73},
- {buttonType = ButtonType.SELL_REFINEDS, name = 'Sell ref', trigger = 79},
- {buttonType = ButtonType.BUY_RESEARCH, name = 'Buy rsch', trigger = 75},
- {buttonType = ButtonType.SELL_RESEARCH, name = 'Sell rsch', trigger = 76}
+ {
+ buttonType = ButtonType.BUY_REFINEDS,
+ name = 'Buy ref',
+ trigger = 73,
+ amount = 10,
+ tooltip = {
+ size = {x = 200, y = 40},
+ lines = {{entry = {text = 'Buy _ refineds for _ wealth'}}}
+ }
+ },
+ {
+ buttonType = ButtonType.SELL_REFINEDS,
+ name = 'Sell ref',
+ trigger = 79,
+ amount = 10,
+ tooltip = {
+ size = {x = 200, y = 40},
+ lines = {{entry = {text = 'Sell _ refineds for _ wealth'}}}
+ }
+ },
+ {
+ buttonType = ButtonType.BUY_RESEARCH,
+ name = 'Buy rsch',
+ trigger = 75,
+ amount = 10,
+ tooltip = {
+ size = {x = 200, y = 40},
+ lines = {{entry = {text = 'Buy _ research for _ wealth'}}}
+ }
+ },
+ {
+ buttonType = ButtonType.SELL_RESEARCH,
+ name = 'Sell rsch',
+ trigger = 76,
+ amount = 10,
+ tooltip = {
+ size = {x = 200, y = 40},
+ lines = {{entry = {text = 'Sell _ research for _ wealth'}}}
+ }
+ }
},
maxUnevenness = .5,
isVehicle = false,
@@ -2656,6 +2902,7 @@ units = {
lineOfSight = 5,
colorNodes = {'wall'},
name = 'Trade center',
+ description = '',
basePath = PATH .. structurePrefix .. 'TradeCenters/',
meshPath = 'acsTradeCenter.xml',
albedoPath = 'tradeCenter.jpg',
@@ -2666,10 +2913,46 @@ units = {
unitClass = UnitClass.TRADE_CENTER,
unitType = UnitType.LAND,
abilityButtons = {
- {buttonType = ButtonType.BUY_REFINEDS, name = 'Buy ref', trigger = 73},
- {buttonType = ButtonType.SELL_REFINEDS, name = 'Sell ref', trigger = 79},
- {buttonType = ButtonType.BUY_RESEARCH, name = 'Buy rsch', trigger = 75},
- {buttonType = ButtonType.SELL_RESEARCH, name = 'Sell rsch', trigger = 76}
+ {
+ buttonType = ButtonType.BUY_REFINEDS,
+ name = 'Buy ref',
+ trigger = 73,
+ amount = 10,
+ tooltip = {
+ size = {x = 200, y = 40},
+ lines = {{entry = {text = 'Buy _ refineds for _ wealth'}}}
+ }
+ },
+ {
+ buttonType = ButtonType.SELL_REFINEDS,
+ name = 'Sell ref',
+ trigger = 79,
+ amount = 10,
+ tooltip = {
+ size = {x = 200, y = 40},
+ lines = {{entry = {text = 'Sell _ refineds for _ wealth'}}}
+ }
+ },
+ {
+ buttonType = ButtonType.BUY_RESEARCH,
+ name = 'Buy rsch',
+ trigger = 75,
+ amount = 10,
+ tooltip = {
+ size = {x = 200, y = 40},
+ lines = {{entry = {text = 'Buy _ research for _ wealth'}}}
+ }
+ },
+ {
+ buttonType = ButtonType.SELL_RESEARCH,
+ name = 'Sell rsch',
+ trigger = 76,
+ amount = 10,
+ tooltip = {
+ size = {x = 200, y = 40},
+ lines = {{entry = {text = 'Sell _ research for _ wealth'}}}
+ }
+ }
},
maxUnevenness = .5,
isVehicle = false,
@@ -2681,6 +2964,7 @@ units = {
lineOfSight = 5,
colorNodes = {'Cube.001'},
name = 'Trade center',
+ description = '',
basePath = PATH .. structurePrefix .. 'TradeCenters/',
meshPath = 'aincTradeCenter.xml',
albedoPath = 'tradeCenter.jpg',
@@ -2691,10 +2975,46 @@ units = {
unitClass = UnitClass.TRADE_CENTER,
unitType = UnitType.LAND,
abilityButtons = {
- {buttonType = ButtonType.BUY_REFINEDS, name = 'Buy ref', trigger = 73},
- {buttonType = ButtonType.SELL_REFINEDS, name = 'Sell ref', trigger = 79},
- {buttonType = ButtonType.BUY_RESEARCH, name = 'Buy rsch', trigger = 75},
- {buttonType = ButtonType.SELL_RESEARCH, name = 'Sell rsch', trigger = 76}
+ {
+ buttonType = ButtonType.BUY_REFINEDS,
+ name = 'Buy ref',
+ trigger = 73,
+ amount = 10,
+ tooltip = {
+ size = {x = 200, y = 40},
+ lines = {{entry = {text = 'Buy _ refineds for _ wealth'}}}
+ }
+ },
+ {
+ buttonType = ButtonType.SELL_REFINEDS,
+ name = 'Sell ref',
+ trigger = 79,
+ amount = 10,
+ tooltip = {
+ size = {x = 200, y = 40},
+ lines = {{entry = {text = 'Sell _ refineds for _ wealth'}}}
+ }
+ },
+ {
+ buttonType = ButtonType.BUY_RESEARCH,
+ name = 'Buy rsch',
+ trigger = 75,
+ amount = 10,
+ tooltip = {
+ size = {x = 200, y = 40},
+ lines = {{entry = {text = 'Buy _ research for _ wealth'}}}
+ }
+ },
+ {
+ buttonType = ButtonType.SELL_RESEARCH,
+ name = 'Sell rsch',
+ trigger = 76,
+ amount = 10,
+ tooltip = {
+ size = {x = 200, y = 40},
+ lines = {{entry = {text = 'Sell _ research for _ wealth'}}}
+ }
+ }
},
maxUnevenness = .5,
isVehicle = false,
@@ -2706,6 +3026,7 @@ units = {
lineOfSight = 5,
colorNodes = {'sphere'},
name = 'Trade center',
+ description = '',
basePath = PATH .. structurePrefix .. 'TradeCenters/',
meshPath = 'erTradeCenter.xml',
albedoPath = 'tradeCenter.jpg',
@@ -2716,7 +3037,20 @@ units = {
unitClass = UnitClass.LAB,
unitType = UnitType.LAND,
maxUnevenness = .5,
- abilityButtons = {{buttonType = ButtonType.ACTIVE_STATE, name = 'Tech tree', guiScreen = 'acsTechTree.lua'}},
+ abilityButtons = {
+ {
+ buttonType = ButtonType.ACTIVE_STATE,
+ name = 'Tech tree',
+ guiScreen = 'acsTechTree.lua',
+ tooltip = {
+ size = {x = 200, y = 40},
+ lines = {
+ {entry = {text = 'Tech tree'}},
+ {entry = {text = 'Access the Asian technology tree'}},
+ }
+ }
+ }
+ },
isVehicle = false,
health = 500,
buildTime = 1000,
@@ -2728,6 +3062,7 @@ units = {
generationSpeed = 10,
researchCost = 1,
name = 'Lab',
+ description = '',
colorNodes = {'stripes'},
basePath = PATH .. structurePrefix .. 'Labs/',
meshPath = 'acsLab.xml',
@@ -2739,7 +3074,20 @@ units = {
unitClass = UnitClass.LAB,
unitType = UnitType.LAND,
maxUnevenness = .5,
- abilityButtons = {{buttonType = ButtonType.ACTIVE_STATE, name = 'Tech tree', guiScreen = 'aincTechTree.lua'}},
+ abilityButtons = {
+ {
+ buttonType = ButtonType.ACTIVE_STATE,
+ name = 'Tech tree',
+ guiScreen = 'aincTechTree.lua',
+ tooltip = {
+ size = {x = 200, y = 40},
+ lines = {
+ {entry = {text = 'Tech tree'}},
+ {entry = {text = 'Access the American technology tree'}},
+ }
+ }
+ }
+ },
isVehicle = false,
health = 500,
buildTime = 1000,
@@ -2751,6 +3099,7 @@ units = {
generationSpeed = 10,
researchCost = 1,
name = 'Lab',
+ description = '',
colorNodes = {'stripe'},
basePath = PATH .. structurePrefix .. 'Labs/',
meshPath = 'aincLab.xml',
@@ -2762,7 +3111,20 @@ units = {
unitClass = UnitClass.LAB,
unitType = UnitType.LAND,
maxUnevenness = .5,
- abilityButtons = {{buttonType = ButtonType.ACTIVE_STATE, name = 'Tech tree', guiScreen = 'erTechTree.lua'}},
+ abilityButtons = {
+ {
+ buttonType = ButtonType.ACTIVE_STATE,
+ name = 'Tech tree',
+ guiScreen = 'erTechTree.lua',
+ tooltip = {
+ size = {x = 200, y = 40},
+ lines = {
+ {entry = {text = 'Tech tree'}},
+ {entry = {text = 'Access the European technology tree'}},
+ }
+ }
+ }
+ },
isVehicle = false,
health = 500,
buildTime = 1000,
@@ -2774,6 +3136,7 @@ units = {
generationSpeed = 10,
researchCost = 1,
name = 'Lab',
+ description = '',
colorNodes = {'stripes'},
basePath = PATH .. structurePrefix .. 'Labs/',
meshPath = 'erLab.xml',
@@ -2841,6 +3204,7 @@ units = {
hitboxOffset = {x = 0, y = 4, z = 0},
lineOfSight = 55,
name = 'Point defense',
+ description = '',
colorNodes = {'Hoses', 'Hoses.001'},
turretNode = 'TurretBody',
basePath = PATH .. structurePrefix .. 'PointDefenses/',
@@ -2864,6 +3228,7 @@ units = {
size = {x = 9.72, y = 10.14, z = 9.72},
lineOfSight = 5,
name = 'Extractor',
+ description = 'Collects refineds from resource deposits',
basePath = PATH .. structurePrefix .. 'Extractors/',
meshPath = 'extractor.xml',
albedoPath = 'extractor.jpg',
@@ -2902,6 +3267,7 @@ units = {
hitboxOffset = {x = 0, y = 15.2, z = 0},
lineOfSight = 5,
name = 'Refinery',
+ description = '',
basePath = PATH .. structurePrefix .. 'Refineries/',
meshPath = 'aincRefinery.xml',
albedoPath = 'refinery.jpg',
@@ -2921,6 +3287,7 @@ units = {
hitboxOffset = {x = 0, y = 13.95, z = 3.23},
lineOfSight = 5,
name = 'Refinery',
+ description = '',
basePath = PATH .. structurePrefix .. 'Refineries/',
meshPath = 'erRefinery.xml',
albedoPath = 'refinery.jpg',
@@ -2936,6 +3303,7 @@ units = {
hitboxOffset = {x = 0, y = 0, z = 0},
lineOfSight = 5,
name = 'Ice sheet',
+ description = '',
basePath = PATH .. structurePrefix .. 'IceSheets/',
meshPath = 'iceSheet.xml',
albedoPath = 'iceSheet.jpg',
diff --git a/Assets/Scripts/Gui/acsTechTree.lua b/Assets/Scripts/Gui/acsTechTree.lua
index 0b97011..70ddd46 100644
--- a/Assets/Scripts/Gui/acsTechTree.lua
+++ b/Assets/Scripts/Gui/acsTechTree.lua
@@ -84,7 +84,7 @@ gui = {
trigger = 82,
},
{
- pos = {x = Pos.x + Size.x - (margin.right + 3 * techButtonSize.x), y = Pos.y + margin.top + 2 * heightOffset, z = .11},
+ pos = {x = Pos.x + Size.x - (margin.right + 3.5 * techButtonSize.x), y = Pos.y + margin.top + 2 * heightOffset, z = .11},
size = techButtonSize,
name = "Carriers",
imagePath = baseTechPath .. 'carriers.jpg',
diff --git a/Assets/Scripts/Gui/activeGameState.lua b/Assets/Scripts/Gui/activeGameState.lua
index e03ec2c..e7fa7da 100644
--- a/Assets/Scripts/Gui/activeGameState.lua
+++ b/Assets/Scripts/Gui/activeGameState.lua
@@ -29,7 +29,7 @@ end
eyeIcon = 'eye.png'
refIcon = 'refineds.png'
minimapSize = {x = 200, y = 200}
-minimapPos = {x = 0, y = res.y - minimapSize.y, z = .85}
+minimapPos = {x = 0, y = res.y - minimapSize.y, z = -.05}
resTextScale = {x = .5, y = .5}
resIconBasePath = 'Icons/Resources/'
@@ -45,7 +45,7 @@ noHackTex = 'noHack.png'
gui = {
{
guiType = GuiType.GUI_RECTANGLE,
- pos = {x = minimapPos.x, y = minimapPos.y, z = .8},
+ pos = {x = minimapPos.x, y = minimapPos.y, z = -.1},
size = minimapSize,
color = {x = .5, y = .5, z = .5, w = .6}
},
@@ -61,7 +61,7 @@ gui = {
guiType = GuiType.TEXT,
name = 'refineds',
text = '',
- pos = {x = s, y = s, z = 0},
+ pos = {x = s, y = s, z = -.2},
scale = resTextScale,
font = 'batang.ttf',
fontFirstChar = 0,
@@ -72,7 +72,7 @@ gui = {
guiType = GuiType.TEXT,
name = 'wealth',
text = '',
- pos = {x = s, y = 2 * s, z = 0},
+ pos = {x = s, y = 2 * s, z = -.2},
scale = resTextScale,
font = 'batang.ttf',
fontFirstChar = 0,
@@ -83,7 +83,7 @@ gui = {
guiType = GuiType.TEXT,
name = 'research',
text = '',
- pos = {x = s, y = 3 * s, z = 0},
+ pos = {x = s, y = 3 * s, z = -.2},
scale = resTextScale,
font = 'batang.ttf',
fontFirstChar = 0,
@@ -93,21 +93,21 @@ gui = {
{
guiType = GuiType.GUI_RECTANGLE,
name = 'refineds',
- pos = {x = 0, y = 0, z = 0},
+ pos = {x = 0, y = 0, z = -.2},
size = {x = s, y = s},
imagePath = resIconBasePath .. 'refineds.png',
},
{
guiType = GuiType.GUI_RECTANGLE,
name = 'wealth',
- pos = {x = 0, y = 1 * s, z = 0},
+ pos = {x = 0, y = 1 * s, z = -.2},
size = {x = s, y = s},
imagePath = resIconBasePath .. 'wealth.png',
},
{
guiType = GuiType.GUI_RECTANGLE,
name = 'research',
- pos = {x = 0, y = 2 * s, z = 0},
+ pos = {x = 0, y = 2 * s, z = -.2},
size = {x = s, y = s},
imagePath = resIconBasePath .. 'research.png',
},
@@ -116,16 +116,21 @@ gui = {
buttonType = ButtonType.PLAYER_TRADE,
name = 'Trade',
guiScreen = 'tradingHub.lua',
- pos = {x = minimapSize.x, y = res.y - minimapSize.y, z = 0},
+ pos = {x = minimapSize.x, y = res.y - minimapSize.y, z = -.2},
size = {x = Size.x, y = minimapSize.y - .75 * sz},
- trigger = 10
+ trigger = 10,
+ tooltip = {
+ offset = {x = Size.x, y = -(minimapSize.y - .75 * sz), z = .1},
+ size = {x = 310, y = 20},
+ lines = {
+ {entry = {text = 'Trade resources with other players'}},
+ }
+ }
},
{
guiType = GuiType.GUI_RECTANGLE,
- pos = {x = minimapSize.x, y = res.y - .75 * sz, z = 0},
+ pos = {x = minimapSize.x, y = res.y - .75 * sz, z = -.2},
size = {x = res.x - minimapPos.x, y = sz * .75},
color = {x = .6, y = .6, z = .6, w = .4}
},
- --[[
- ]]--
}
diff --git a/Assets/Scripts/Gui/aincTechTree.lua b/Assets/Scripts/Gui/aincTechTree.lua
index 7782408..69a66dd 100644
--- a/Assets/Scripts/Gui/aincTechTree.lua
+++ b/Assets/Scripts/Gui/aincTechTree.lua
@@ -84,7 +84,7 @@ gui = {
trigger = 82,
},
{
- pos = {x = Pos.x + Size.x - (margin.right + 3 * techButtonSize.x), y = Pos.y + margin.top + 2 * heightOffset, z = .11},
+ pos = {x = Pos.x + Size.x - (margin.right + 3.5 * techButtonSize.x), y = Pos.y + margin.top + 2 * heightOffset, z = .11},
size = techButtonSize,
name = "Carriers",
imagePath = baseTechPath .. 'carriers.jpg',
diff --git a/Assets/Scripts/Gui/audioTab.lua b/Assets/Scripts/Gui/audioTab.lua
index 0419e1b..cc1f051 100644
--- a/Assets/Scripts/Gui/audioTab.lua
+++ b/Assets/Scripts/Gui/audioTab.lua
@@ -1,37 +1,58 @@
-numGui = 5
gui = {
{
- pos = {x = 110, y = 90, z = 0},
- size = {x = 100, y = 10},
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Audio',
+ pos = {x = 20, y = 50, z = 0},
+ scale = .5,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Volume',
+ pos = {x = 20, y = 110, z = 0},
+ scale = .2,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ pos = {x = 370, y = 100, z = 0},
+ size = {x = 60, y = 30},
guiType = GuiType.TEXTBOX,
},
{
- pos = {x = 110, y = 40, z = 0},
- size = {x = 100, y = 10},
+ pos = {x = 120, y = 100, z = 0},
+ size = {x = 200, y = 10},
guiType = GuiType.SLIDER,
minValue = 0,
maxValue = 100,
numDependencies = 1,
dependencies = {
- {id = 0}
+ {id = 1}
}
},
{
- pos = {x = 100, y = 400, z = 0},
+ pos = {x = 20, y = 400, z = 0},
size = {x = 150, y = 20},
guiType = GuiType.BUTTON,
name = 'Ok',
buttonType = ButtonType.OK
},
{
- pos = {x = 260, y = 400, z = 0},
+ pos = {x = 180, y = 400, z = 0},
size = {x = 150, y = 20},
guiType = GuiType.BUTTON,
name = 'Restore defaults',
buttonType = ButtonType.DEFAULTS
},
{
- pos = {x = 420, y = 400, z = 0},
+ pos = {x = 340, y = 400, z = 0},
size = {x = 150, y = 20},
guiType = GuiType.BUTTON,
name = 'Back',
diff --git a/Assets/Scripts/Gui/console.lua b/Assets/Scripts/Gui/console.lua
index 61e3e64..8e00b57 100644
--- a/Assets/Scripts/Gui/console.lua
+++ b/Assets/Scripts/Gui/console.lua
@@ -1,28 +1,46 @@
-numGui = 3
gui = {
{
- pos = {x = 100, y = 100, z = 0},
- size = {x = 300, y = 20},
+ guiType = GuiType.TEXT,
+ text = 'Console',
+ name = '',
+ pos = {x = 20, y = 40, z = 0},
+ scale = 0.5,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ pos = {x = 20, y = 40, z = 0},
+ size = {x = 600, y = 20},
guiType = GuiType.LISTBOX,
listboxType = ListboxType.CONSOLE,
numMaxDisplay = 10,
closable = false
},
{
- pos = {x = 100, y = 510, z = 0},
- size = {x = 270, y = 20},
+ pos = {x = 20, y = 510, z = 0},
+ size = {x = 550, y = 20},
guiType = GuiType.TEXTBOX
},
{
- pos = {x = 380, y = 510, z = 0},
- size = {x = 20, y = 20},
+ pos = {x = 590, y = 510, z = 0},
+ size = {x = 30, y = 20},
guiType = GuiType.BUTTON,
buttonType = ButtonType.CONSOLE_COMMAND_OK,
name = 'OK',
numDependencies = 2,
dependencies = {
- {id = 0},
- {id = 1}
+ {id = 1},
+ {id = 2}
}
+ },
+ {
+ pos = {x = 630, y = 510, z = 0},
+ size = {x = 40, y = 20},
+ guiType = GuiType.BUTTON,
+ buttonType = ButtonType.BACK,
+ screen = 'gamePaused.lua',
+ name = 'Back'
}
}
diff --git a/Assets/Scripts/Gui/controlsTab.lua b/Assets/Scripts/Gui/controlsTab.lua
index 8518863..e639ee9 100644
--- a/Assets/Scripts/Gui/controlsTab.lua
+++ b/Assets/Scripts/Gui/controlsTab.lua
@@ -1,28 +1,49 @@
-numGui = 4
gui = {
{
- pos = {x = 110, y = 190, z = 0},
- size = {x = 360, y = 20},
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Controls',
+ pos = {x = 20, y = 50, z = 0},
+ scale = .5,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Key bindings',
+ pos = {x = 20, y = 190, z = 0},
+ scale = .25,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ pos = {x = 20, y = 200, z = 0},
+ size = {x = 470, y = 20},
guiType = GuiType.LISTBOX,
listboxType = ListboxType.CONTROLS,
numMaxDisplay = 5
},
{
- pos = {x = 100, y = 400, z = 0},
+ pos = {x = 20, y = 410, z = 0},
size = {x = 150, y = 20},
guiType = GuiType.BUTTON,
name = 'Ok',
buttonType = ButtonType.OK
},
{
- pos = {x = 260, y = 400, z = 0},
+ pos = {x = 180, y = 410, z = 0},
size = {x = 150, y = 20},
guiType = GuiType.BUTTON,
name = 'Restore defaults',
buttonType = ButtonType.DEFAULTS
},
{
- pos = {x = 420, y = 400, z = 0},
+ pos = {x = 340, y = 410, z = 0},
size = {x = 150, y = 20},
guiType = GuiType.BUTTON,
name = 'Back',
diff --git a/Assets/Scripts/Gui/defeat.lua b/Assets/Scripts/Gui/defeat.lua
index a73a62c..f0e545d 100644
--- a/Assets/Scripts/Gui/defeat.lua
+++ b/Assets/Scripts/Gui/defeat.lua
@@ -7,16 +7,16 @@ music = {
res = graphics.resolution
overlaySize = {x = 600, y = 450}
-overlayPos = {x = .5 * (res.x - overlaySize.x), y = 200, z = 0}
+overlayPos = {x = .5 * (res.x - overlaySize.x), y = 100, z = .2}
buttonSize = {x = 150, y = 40}
-buttonInitPos = {x = .5 * (res.x - buttonSize.x), y = 350, z = .1}
+buttonInitPos = {x = .5 * (res.x - buttonSize.x), y = 250, z = .3}
gui = {
{
guiType = GuiType.TEXT,
text = 'Defeat',
name = 'D',
- pos = {x = overlayPos.x + 20, y = overlayPos.y + 75, z = .1},
+ pos = {x = overlayPos.x + 150, y = overlayPos.y + 75, z = .3},
scale = 1,
font = 'batang.ttf',
fontFirstChar = 0,
diff --git a/Assets/Scripts/Gui/erTechTree.lua b/Assets/Scripts/Gui/erTechTree.lua
index 795769f..c9c5373 100644
--- a/Assets/Scripts/Gui/erTechTree.lua
+++ b/Assets/Scripts/Gui/erTechTree.lua
@@ -84,7 +84,7 @@ gui = {
trigger = 82,
},
{
- pos = {x = Pos.x + Size.x - (margin.right + 3 * techButtonSize.x), y = Pos.y + margin.top + 2 * heightOffset, z = .11},
+ pos = {x = Pos.x + Size.x - (margin.right + 3.5 * techButtonSize.x), y = Pos.y + margin.top + 2 * heightOffset, z = .11},
size = techButtonSize,
name = "Carriers",
imagePath = baseTechPath .. 'carriers.jpg',
diff --git a/Assets/Scripts/Gui/gamePaused.lua b/Assets/Scripts/Gui/gamePaused.lua
index f9a4be1..92cedaf 100644
--- a/Assets/Scripts/Gui/gamePaused.lua
+++ b/Assets/Scripts/Gui/gamePaused.lua
@@ -1,8 +1,13 @@
Size = {x = 150, y = 50}
-numGui = 5
gui = {
{
- pos = {x = 100, y = 100, z = 0},
+ guiType = GuiType.GUI_RECTANGLE,
+ pos = {x = 0, y = 0, z = -.01},
+ size = graphics.resolution,
+ color = {x = 0, y = 0, z = 0, w = .6}
+ },
+ {
+ pos = {x = 100, y = 100, z = .3},
size = Size,
guiType = GuiType.BUTTON,
buttonType = ButtonType.RESUME,
diff --git a/Assets/Scripts/Gui/loadMap.lua b/Assets/Scripts/Gui/loadMap.lua
index 6538fda..1b65fc8 100644
--- a/Assets/Scripts/Gui/loadMap.lua
+++ b/Assets/Scripts/Gui/loadMap.lua
@@ -1,7 +1,17 @@
-numGui = 3
gui = {
{
- pos = {x = 110, y = 190, z = 0},
+ guiType = GuiType.TEXT,
+ name = 't0',
+ text = 'Load map',
+ pos = {x = 20, y = 50, z = 0},
+ scale = .5,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ pos = {x = 20, y = 100, z = 0},
size = {x = 360, y = 20},
guiType = GuiType.LISTBOX,
addPlayerGui = false,
@@ -9,19 +19,17 @@ gui = {
numMaxDisplay = 5
},
{
- pos = {x = 110, y = 250, z = 0},
- size = {x = 140, y = 40},
+ pos = {x = 20, y = 210, z = 0},
+ size = {x = 160, y = 40},
guiType = GuiType.BUTTON,
name = 'Ok',
buttonType = ButtonType.LOAD_MAP_OK,
numDependencies = 1,
- dependencies = {
- {id = 0}
- }
+ dependencies = {{id = 1}}
},
{
- pos = {x = 420, y = 400, z = 0},
- size = {x = 150, y = 50},
+ pos = {x = 220, y = 210, z = 0},
+ size = {x = 160, y = 40},
guiType = GuiType.BUTTON,
name = 'Back',
buttonType = ButtonType.BACK,
diff --git a/Assets/Scripts/Gui/loadingScreen.lua b/Assets/Scripts/Gui/loadingScreen.lua
index 159a0c6..41e4313 100644
--- a/Assets/Scripts/Gui/loadingScreen.lua
+++ b/Assets/Scripts/Gui/loadingScreen.lua
@@ -1,5 +1,7 @@
-initPos = {x = 850, y = 100, z = 0}
+res = graphics.resolution
+
Size = {x = 200, y = 20}
+initPos = {x = .5 * (res.x - Size.x), y = 100, z = 0}
gui = {
{
diff --git a/Assets/Scripts/Gui/mainMenu.lua b/Assets/Scripts/Gui/mainMenu.lua
index 8751fac..78fef46 100644
--- a/Assets/Scripts/Gui/mainMenu.lua
+++ b/Assets/Scripts/Gui/mainMenu.lua
@@ -1,6 +1,12 @@
Size = {x = 150, y = 40}
+res = graphics.resolution
+
+res = graphics.resolution
+overlaySize = {x = 600, y = 450}
+overlayPos = {x = .5 * (res.x - overlaySize.x), y = 100, z = 0}
+buttonSize = {x = 150, y = 40}
+buttonInitPos = {x = .5 * (res.x - buttonSize.x), y = 250, z = .1}
-numGui = 4
music = {
loop = true,
shuffle = false,
@@ -9,31 +15,75 @@ music = {
}
gui = {
{
- pos = {x = 110, y = 40, z = 0},
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Planet Fleet',
+ pos = {x = 20, y = 50, z = 0},
+ scale = .75,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 0, y = 0, z = 1, w = 1}
+ },
+ {
+ pos = {x = 20, y = 100, z = 0},
size = Size,
guiType = GuiType.BUTTON,
name = 'Single player',
- buttonType = ButtonType.SINGLE_PLAYER
+ buttonType = ButtonType.SINGLE_PLAYER,
+ baseColor = {x = .6, y = .6, z = .6, w = 1},
+ hoveredOnColor = {x = .8, y = .8, z = .8, w = 1},
+ tooltip = {
+ offset = {x = 100, y = -25, z = .1},
+ size = {x = 270, y = 20},
+ lines = {
+ {
+ entry = {text = 'Play with computer opponents'},
+ },
+
+ }
+ }
},
{
- pos = {x = 110, y = 90, z = 0},
+ pos = {x = 20, y = 160, z = 0},
size = Size,
guiType = GuiType.BUTTON,
name = 'Map editor',
- buttonType = ButtonType.MAP_EDITOR
+ buttonType = ButtonType.MAP_EDITOR,
+ tooltip = {
+ offset = {x = 100, y = -25, z = .1},
+ size = {x = 340, y = 20},
+ lines = {
+ {entry = {text = 'Create new maps or edit existing ones'}},
+ }
+ }
},
{
- pos = {x = 110, y = 140, z = 0},
+ pos = {x = 20, y = 220, z = 0},
size = Size,
guiType = GuiType.BUTTON,
name = 'Options',
- buttonType = ButtonType.OPTIONS
+ buttonType = ButtonType.OPTIONS,
+ tooltip = {
+ offset = {x = 100, y = -25, z = .1},
+ size = {x = 200, y = 20},
+ lines = {
+ {entry = {text = 'Configure Planet Fleet'}},
+ }
+ }
},
{
- pos = {x = 110, y = 190, z = 0},
+ pos = {x = 20, y = 280, z = 0},
size = Size,
guiType = GuiType.BUTTON,
name = 'Exit',
- buttonType = ButtonType.EXIT
+ buttonType = ButtonType.EXIT,
+ tooltip = {
+ offset = {x = 100, y = -25, z = .1},
+ size = {x = 150, y = 20},
+ lines = {
+ {entry = {text = 'Exit Planet Fleet'}},
+ }
+ }
}
}
diff --git a/Assets/Scripts/Gui/mapEditor.lua b/Assets/Scripts/Gui/mapEditor.lua
index 9fb8576..cb5f2dc 100644
--- a/Assets/Scripts/Gui/mapEditor.lua
+++ b/Assets/Scripts/Gui/mapEditor.lua
@@ -1,47 +1,120 @@
music = {tracks = {}}
-numGui = 6
Size = {x = 140, y = 20}
-startX = 100
+startX = 20
gui = {
{
- pos = {x = startX, y = 400, z = 0},
- size = Size,
+ guiType = GuiType.TEXT,
+ name = 'radius_',
+ text = '',
+ pos = {x = 0, y = 40, z = 0},
+ scale = .5,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ pos = {x = startX, y = 300, z = 0},
+ size = {x = 80, y = 20},
guiType = GuiType.BUTTON,
buttonType = ButtonType.EXPORT,
name = 'Export'
},
{
- pos = {x = startX + Size.x + 10, y = 400, z = 0},
+ pos = {x = startX + 110, y = 300, z = 0},
+ size = {x = 170, y = 20},
+ guiType = GuiType.BUTTON,
+ buttonType = ButtonType.BACK,
+ screen = 'mapEditorMenu.lua',
+ name = 'Back to map editor'
+ },
+ {
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Vehicles',
+ pos = {x = startX, y = 400, z = 0},
+ scale = .25,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ pos = {x = startX, y = 400, z = 0},
size = Size,
guiType = GuiType.LISTBOX,
listboxType = ListboxType.VEHICLES,
numMaxDisplay = 5
},
{
- pos = {x = startX + 2 * (Size.x + 10), y = 400, z = 0},
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Structures',
+ pos = {x = startX + 150, y = 400, z = 0},
+ scale = .25,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ pos = {x = startX + 150, y = 400, z = 0},
size = Size,
guiType = GuiType.LISTBOX,
listboxType = ListboxType.STRUCTURES,
numMaxDisplay = 5
},
{
- pos = {x = startX + 3 * (Size.x + 10), y = 400, z = 0},
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Resources',
+ pos = {x = startX + 2 * (Size.x + 10), y = 400, z = 0},
+ scale = .25,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ pos = {x = startX + 2 * (Size.x + 10), y = 400, z = 0},
size = Size,
guiType = GuiType.LISTBOX,
listboxType = ListboxType.RESOURCE_DEPOSITS,
numMaxDisplay = 5
},
{
- pos = {x = startX + 4 * (Size.x + 10), y = 400, z = 0},
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Skyboxes',
+ pos = {x = startX + 3 * (Size.x + 10), y = 400, z = 0},
+ scale = .25,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ pos = {x = startX + 3 * (Size.x + 10), y = 400, z = 0},
size = Size,
guiType = GuiType.LISTBOX,
listboxType = ListboxType.SKYBOX_TEXTURES,
numMaxDisplay = 5
},
{
- pos = {x = startX + 5 * (Size.x + 10), y = 400, z = 0},
- size = Size,
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Land textures',
+ pos = {x = startX + 4 * (Size.x + 10), y = 400, z = 0},
+ scale = .25,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ pos = {x = startX + 4 * (Size.x + 10), y = 400, z = 0},
+ size = {x = 170, y = 20},
guiType = GuiType.LISTBOX,
listboxType = ListboxType.LAND_TEXTURES,
numMaxDisplay = 5
diff --git a/Assets/Scripts/Gui/mapEditorMenu.lua b/Assets/Scripts/Gui/mapEditorMenu.lua
index 5bae37a..aab0497 100644
--- a/Assets/Scripts/Gui/mapEditorMenu.lua
+++ b/Assets/Scripts/Gui/mapEditorMenu.lua
@@ -1,23 +1,33 @@
Size = {x = 150, y = 40}
-numGui = 3
gui = {
{
- pos = {x = 110, y = 40, z = 0},
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Map editor',
+ pos = {x = 20, y = 50, z = 0},
+ scale = .5,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ pos = {x = 20, y = 60, z = 0},
size = Size,
guiType = GuiType.BUTTON,
name = 'New map',
buttonType = ButtonType.NEW_MAP
},
{
- pos = {x = 110, y = 90, z = 0},
+ pos = {x = 20, y = 110, z = 0},
size = Size,
guiType = GuiType.BUTTON,
name = 'Load map',
buttonType = ButtonType.LOAD_MAP
},
{
- pos = {x = 110, y = 140, z = 0},
+ pos = {x = 20, y = 160, z = 0},
size = Size,
guiType = GuiType.BUTTON,
name = 'Back',
diff --git a/Assets/Scripts/Gui/mouseTab.lua b/Assets/Scripts/Gui/mouseTab.lua
index e9c34f4..d9c7595 100644
--- a/Assets/Scripts/Gui/mouseTab.lua
+++ b/Assets/Scripts/Gui/mouseTab.lua
@@ -1,23 +1,55 @@
-numGui = 6
gui = {
{
- pos = {x = 110, y = 80, z = 0},
- size = {x = 300, y = 10},
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Mouse',
+ pos = {x = 20, y = 50, z = 0},
+ scale = .5,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Sensitivity',
+ pos = {x = 20, y = 110, z = 0},
+ scale = .2,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ pos = {x = 470, y = 100, z = 0},
+ size = {x = 60, y = 30},
guiType = GuiType.TEXTBOX
},
{
- pos = {x = 110, y = 40, z = 0},
+ pos = {x = 120, y = 100, z = 0},
size = {x = 300, y = 10},
minValue = 0,
maxValue = 2,
guiType = GuiType.SLIDER,
numDependencies = 1,
dependencies = {
- {id = 0}
+ {id = 1}
}
},
{
- pos = {x = 110, y = 110, z = 0},
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Reverse',
+ pos = {x = 20, y = 150, z = 0},
+ scale = .2,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ pos = {x = 110, y = 135, z = 0},
guiType = GuiType.CHECKBOX
},
{
diff --git a/Assets/Scripts/Gui/newMap.lua b/Assets/Scripts/Gui/newMap.lua
index 2f0fc99..b416359 100644
--- a/Assets/Scripts/Gui/newMap.lua
+++ b/Assets/Scripts/Gui/newMap.lua
@@ -1,38 +1,77 @@
-Size = {x = 140, y = 40}
+Size = {x = 200, y = 40}
-numGui = 5
gui = {
{
- pos = {x = 110, y = 150, z = 0},
+ guiType = GuiType.TEXT,
+ name = 't0',
+ text = 'New map',
+ pos = {x = 20, y = 50, z = 0},
+ scale = .5,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ guiType = GuiType.TEXT,
+ name = 't1',
+ text = 'Map name',
+ pos = {x = 20, y = 150, z = 0},
+ scale = .25,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ pos = {x = 20, y = 150, z = 0},
size = Size,
guiType = GuiType.TEXTBOX
},
{
- pos = {x = 110, y = 190, z = 0},
+ guiType = GuiType.TEXT,
+ name = 't2',
+ text = 'Width',
+ pos = {x = 20, y = 220, z = 0},
+ scale = .25,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ pos = {x = 20, y = 220, z = 0},
size = Size,
guiType = GuiType.TEXTBOX
},
{
- pos = {x = 110, y = 220, z = 0},
+ guiType = GuiType.TEXT,
+ name = 't3',
+ text = 'Height',
+ pos = {x = 20, y = 290, z = 0},
+ scale = .25,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ pos = {x = 20, y = 290, z = 0},
size = Size,
guiType = GuiType.TEXTBOX
},
{
- pos = {x = 420, y = 400, z = 0},
- size = {x = 150, y = 50},
+ pos = {x = 20, y = 400, z = 0},
+ size = {x = 150, y = 20},
guiType = GuiType.BUTTON,
name = 'Ok',
buttonType = ButtonType.NEW_MAP_OK,
numDependencies = 3,
- dependencies = {
- {id = 0},
- {id = 1},
- {id = 2}
- }
+ dependencies = {{id = 2}, {id = 4}, {id = 6}}
},
{
- pos = {x = 250, y = 400, z = 0},
- size = {x = 150, y = 50},
+ pos = {x = 190, y = 400, z = 0},
+ size = {x = 150, y = 20},
guiType = GuiType.BUTTON,
name = 'Back',
buttonType = ButtonType.BACK,
diff --git a/Assets/Scripts/Gui/options.lua b/Assets/Scripts/Gui/options.lua
index d5be514..8276b2c 100644
--- a/Assets/Scripts/Gui/options.lua
+++ b/Assets/Scripts/Gui/options.lua
@@ -1,44 +1,47 @@
-Size = {x = 150, y = 40}
+Size = {x = 120, y = 20}
-numGui = 6
gui = {
{
- pos = {x = 110, y = 40, z = 0},
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Options',
+ pos = {x = 20, y = 50, z = 0},
+ scale = .5,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ pos = {x = 20, y = 100, z = 0},
size = Size,
guiType = GuiType.BUTTON,
name = 'Controls',
buttonType = ButtonType.CONTROLS_TAB
},
{
- pos = {x = 270, y = 40, z = 0},
+ pos = {x = 180, y = 100, z = 0},
size = Size,
guiType = GuiType.BUTTON,
name = 'Mouse',
buttonType = ButtonType.MOUSE_TAB
},
{
- pos = {x = 430, y = 40, z = 0},
+ pos = {x = 340, y = 100, z = 0},
size = Size,
guiType = GuiType.BUTTON,
name = 'Video',
buttonType = ButtonType.VIDEO_TAB
},
{
- pos = {x = 590, y = 40, z = 0},
+ pos = {x = 500, y = 100, z = 0},
size = Size,
guiType = GuiType.BUTTON,
name = 'Audio',
buttonType = ButtonType.AUDIO_TAB
},
{
- pos = {x = 750, y = 40, z = 0},
- size = Size,
- guiType = GuiType.BUTTON,
- name = 'Multiplayer',
- buttonType = ButtonType.MULTIPLAYER_TAB
- },
- {
- pos = {x = 910, y = 100, z = 0},
+ pos = {x = 20, y = 160, z = 0},
size = Size,
guiType = GuiType.BUTTON,
name = 'Back',
diff --git a/Assets/Scripts/Gui/playerSelection.lua b/Assets/Scripts/Gui/playerSelection.lua
index 4b3ae1b..a489448 100644
--- a/Assets/Scripts/Gui/playerSelection.lua
+++ b/Assets/Scripts/Gui/playerSelection.lua
@@ -1,58 +1,97 @@
-playerListboxPos = {x = 110, y = 10, z = 0}
+playerListboxPos = {x = 20, y = 30, z = 0}
Pos = {x = playerListboxPos.x, y = playerListboxPos.y, z = playerListboxPos.z}
FactionListboxSize = {x = 270, y = 20}
Size = {x = 150, y = 20}
gap = 10
gapFactor = 3
-function generateFactions(humanPlayer)
- factions = {'None', 'Asian Co-Prosperity Sphere', 'America inc.', 'European Republic'}
+colors = {
+ {name = 'White', code = {r = 1, g = 1, b = 1}},
+ {name = 'Red', code = {r = 1, g = 0, b = 0}},
+ {name = 'Green', code = {r = 0, g = 1, b = 0}},
+ {name = 'Blue', code = {r = 0, g = 0, b = 1}},
+ {name = 'Yellow', code = {r = 1, g = 1, b = 0}},
+ {name = 'Orange', code = {r = 1, g = .5, b = 0}},
+ {name = 'Brown', code = {r = .5, g = .25, b = 0}},
+ {name = 'Purple', code = {r = .7, g = 0, b = .7}},
+ {name = 'Pink', code = {r = 1, g = .25, b = .5}},
+}
- if humanPlayer then table.remove(factions, 1) end
+function generateColorTable(colors, fieldName)
+ tbl = {}
- return factions
+ for i = 1, #colors do
+ table.insert(tbl, colors[i][fieldName])
+ end
+
+ return tbl
end
-factions = generateFactions(lineId == MAIN_PLAYER_ID)
-difficulties = {"Easy", "Medium", "Hard"}
-colors = {'White', 'Black', 'Red'}
-teams = {'0', '1', '2', '3', '4'}
+function generateGui(humanPlayer)
+ factions = {'Random', 'Asian Co-Prosperity Sphere', 'America inc.', 'European Republic'}
+ difficulties = {'None', "Easy AI", "Medium AI", "Hard AI"}
+ teams = {'0', '1', '2', '3', '4'}
-gui = {
- {
- pos = {x = Pos.x, y = Pos.y + (gapFactor * Size.y + gap) * (lineId + 1), z = Pos.z},
- size = FactionListboxSize,
- guiType = GuiType.LISTBOX,
- name = 'factions',
- numMaxDisplay = 3,
- lines = factions,
- listboxType = ListboxType.FACTIONS
- },
- {
- pos = {x = Pos.x + FactionListboxSize.x + gap, y = Pos.y + (gapFactor * Size.y + gap) * (lineId + 1), z = Pos.z},
- size = Size,
- guiType = GuiType.LISTBOX,
- name = 'difficulties',
- numMaxDisplay = 3,
- lines = difficulties,
- listboxType = ListboxType.CPU_DIFFICULTIES
- },
- {
- pos = {x = Pos.x + FactionListboxSize.x + Size.x + 2 * gap, y = Pos.y + (gapFactor * Size.y + gap) * (lineId + 1), z = Pos.z},
- size = Size,
- guiType = GuiType.LISTBOX,
- name = 'colors',
- numMaxDisplay = 3,
- lines = colors,
- listboxType = ListboxType.COLORS
- },
- {
- pos = {x = Pos.x + FactionListboxSize.x + 2 * Size.x + 3 * gap, y = Pos.y + (gapFactor * Size.y + gap) * (lineId + 1), z = Pos.z},
- size = Size,
- guiType = GuiType.LISTBOX,
- name = 'teams',
- numMaxDisplay = 3,
- lines = teams,
- listboxType = ListboxType.TEAMS
- },
-}
+ firstGui = nil
+
+ if humanPlayer then
+ table.remove(difficulties, 1)
+
+ firstGui = {
+ guiType = GuiType.TEXT,
+ name = '_mainPlayer',
+ text = 'Player',
+ pos = {x = 20, y = 120, z = 0},
+ scale = .2,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ }
+ else
+ firstGui = {
+ pos = {x = Pos.x, y = Pos.y + (gapFactor * Size.y + gap) * (lineId + 1), z = Pos.z},
+ size = Size,
+ guiType = GuiType.LISTBOX,
+ name = 'difficulties',
+ numMaxDisplay = 3,
+ lines = difficulties,
+ listboxType = ListboxType.CPU_DIFFICULTIES
+ }
+ end
+
+ local gui = {
+ firstGui,
+ {
+ pos = {x = Pos.x + Size.x + gap, y = Pos.y + (gapFactor * Size.y + gap) * (lineId + 1), z = Pos.z},
+ size = FactionListboxSize,
+ guiType = GuiType.LISTBOX,
+ name = 'factions',
+ numMaxDisplay = 3,
+ lines = factions,
+ listboxType = ListboxType.FACTIONS
+ },
+ {
+ pos = {x = Pos.x + Size.x + FactionListboxSize.x + 2 * gap, y = Pos.y + (gapFactor * Size.y + gap) * (lineId + 1), z = Pos.z},
+ size = Size,
+ guiType = GuiType.LISTBOX,
+ name = 'colors',
+ numMaxDisplay = 3,
+ lines = generateColorTable(colors, 'name'),
+ listboxType = ListboxType.COLORS
+ },
+ {
+ pos = {x = Pos.x + FactionListboxSize.x + 2 * Size.x + 3 * gap, y = Pos.y + (gapFactor * Size.y + gap) * (lineId + 1), z = Pos.z},
+ size = {x = 50, y = 20},
+ guiType = GuiType.LISTBOX,
+ name = 'teams',
+ numMaxDisplay = 3,
+ lines = teams,
+ listboxType = ListboxType.TEAMS
+ },
+ }
+
+ return gui
+end
+
+gui = generateGui(lineId == MAIN_PLAYER_ID)
diff --git a/Assets/Scripts/Gui/singlePlayerMenu.lua b/Assets/Scripts/Gui/singlePlayerMenu.lua
index 71fb002..abe579a 100644
--- a/Assets/Scripts/Gui/singlePlayerMenu.lua
+++ b/Assets/Scripts/Gui/singlePlayerMenu.lua
@@ -10,7 +10,62 @@ MAIN_PLAYER_ID = 0
gui = {
{
- pos = {x = 110, y = 310, z = 0},
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Singleplayer',
+ pos = {x = 20, y = 50, z = 0},
+ scale = .5,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Player',
+ pos = {x = 20, y = 100, z = 0},
+ scale = .2,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Faction',
+ pos = {x = 180, y = 100, z = 0},
+ scale = .2,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Color',
+ pos = {x = 460, y = 100, z = 0},
+ scale = .2,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Team',
+ pos = {x = 620, y = 100, z = 0},
+ scale = .2,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ pos = {x = 20, y = 310, z = 0},
size = Size,
guiType = GuiType.LISTBOX,
addPlayerGui = true,
@@ -18,16 +73,16 @@ gui = {
numMaxDisplay = 5
},
{
- pos = {x = 110, y = 460, z = 0},
+ pos = {x = 20, y = 460, z = 0},
size = Size,
guiType = GuiType.BUTTON,
buttonType = ButtonType.PLAY,
name = 'Play',
numDependencies = 4,
- dependencies = {{id = 0}}
+ dependencies = {{id = 5}}
},
{
- pos = {x = 110 + Size.x + 10, y = 460, z = 0},
+ pos = {x = 20 + Size.x + 10, y = 460, z = 0},
size = Size,
guiType = GuiType.BUTTON,
buttonType = ButtonType.BACK,
diff --git a/Assets/Scripts/Gui/statistics.lua b/Assets/Scripts/Gui/statistics.lua
index 346e552..56913f8 100644
--- a/Assets/Scripts/Gui/statistics.lua
+++ b/Assets/Scripts/Gui/statistics.lua
@@ -1,6 +1,7 @@
-headerHeight = 150
-statsInitHeight = 120
-statsSpace = 100
+headerHeight = 100
+statsInitLeft = .5 * res.x - 400
+statsInitHeight = 40
+statsSpace = 20
fontName = 'batang.ttf'
gui = {
@@ -8,8 +9,7 @@ gui = {
guiType = GuiType.TEXT,
text = 'Statistics',
name = 'stat',
- pos = {x = 850, y = 100, z = 0},
- zIndex = 0,
+ pos = {x = .4 * res.x, y = 50, z = 0},
scale = 0.5,
font = fontName,
fontFirstChar = 0,
@@ -20,9 +20,8 @@ gui = {
guiType = GuiType.TEXT,
text = 'Player',
name = 'pl',
- pos = {x = 50, y = headerHeight, z = 0},
- zIndex = 0,
- scale = 0.3,
+ pos = {x = statsInitLeft + 10, y = headerHeight, z = 0},
+ scale = 0.18,
font = fontName,
fontFirstChar = 0,
fontLastChar = 256,
@@ -32,9 +31,8 @@ gui = {
guiType = GuiType.TEXT,
text = 'Vehicles built',
name = 'vb',
- pos = {x = 150, y = headerHeight, z = 0},
- zIndex = 0,
- scale = 0.3,
+ pos = {x = statsInitLeft + 110, y = headerHeight, z = 0},
+ scale = 0.18,
font = fontName,
fontFirstChar = 0,
fontLastChar = 256,
@@ -44,9 +42,8 @@ gui = {
guiType = GuiType.TEXT,
text = 'Vehicles destroyed',
name = 'vd',
- pos = {x = 450, y = headerHeight, z = 0},
- zIndex = 0,
- scale = 0.3,
+ pos = {x = statsInitLeft + 220, y = headerHeight, z = 0},
+ scale = 0.18,
font = fontName,
fontFirstChar = 0,
fontLastChar = 256,
@@ -56,9 +53,8 @@ gui = {
guiType = GuiType.TEXT,
text = 'Vehicles lost',
name = 'vl',
- pos = {x = 850, y = headerHeight, z = 0},
- zIndex = 0,
- scale = 0.3,
+ pos = {x = statsInitLeft + 370, y = headerHeight, z = 0},
+ scale = 0.18,
font = fontName,
fontFirstChar = 0,
fontLastChar = 256,
@@ -66,11 +62,10 @@ gui = {
},
{
guiType = GuiType.TEXT,
- text = 'Structures built',
+ text = 'Structs built',
name = 'sb',
- pos = {x = 1050, y = headerHeight, z = 0},
- zIndex = 0,
- scale = 0.3,
+ pos = {x = statsInitLeft + 480, y = headerHeight, z = 0},
+ scale = 0.18,
font = fontName,
fontFirstChar = 0,
fontLastChar = 256,
@@ -78,11 +73,10 @@ gui = {
},
{
guiType = GuiType.TEXT,
- text = 'Structures destroyed',
+ text = 'Structs destroyed',
name = 'sd',
- pos = {x = 1350, y = headerHeight, z = 0},
- zIndex = 0,
- scale = 0.3,
+ pos = {x = statsInitLeft + 580, y = headerHeight, z = 0},
+ scale = 0.18,
font = fontName,
fontFirstChar = 0,
fontLastChar = 256,
@@ -90,18 +84,17 @@ gui = {
},
{
guiType = GuiType.TEXT,
- text = 'Structures lost',
+ text = 'Structs lost',
name = 'sl',
- pos = {x = 1720, y = headerHeight, z = 0},
- zIndex = 0,
- scale = 0.3,
+ pos = {x = statsInitLeft + 720, y = headerHeight, z = 0},
+ scale = 0.18,
font = 'batang.ttf',
fontFirstChar = 0,
fontLastChar = 256,
color = {x = 1, y = 1, z = 1, w = 1}
},
{
- pos = {x = 1700, y = 1000, z = 0},
+ pos = {x = res.x - Size.x - 10, y = res.y - Size.y - 10, z = 0},
size = Size,
guiType = GuiType.BUTTON,
name = 'Back',
diff --git a/Assets/Scripts/Gui/tradingHub.lua b/Assets/Scripts/Gui/tradingHub.lua
index 552020e..62c0e9c 100644
--- a/Assets/Scripts/Gui/tradingHub.lua
+++ b/Assets/Scripts/Gui/tradingHub.lua
@@ -1,6 +1,6 @@
res = graphics.resolution
-HubSize = {x = res.x * .3, y = res.y * .8}
+HubSize = {x = 500, y = res.y * .8}
HubPos = {x = .5 * (res.x - HubSize.x), y = 10, z = .1}
HubMargin = {top = 10, left = 10, right = 10, bottom = 10}
@@ -11,6 +11,50 @@ warIcon = 'Icons/PlayerStates/war.png'
allianceIcon = 'Icons/PlayerStates/alliance.png'
gui = {
+ {
+ guiType = GuiType.TEXT,
+ text = 'Trading hub',
+ name = '',
+ pos = {x = HubPos.x + .25 * HubSize.x, y = HubPos.y + HubMargin.top + 25, z = .11},
+ scale = 0.5,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ guiType = GuiType.TEXT,
+ text = 'Name',
+ name = '',
+ pos = {x = HubPos.x + HubMargin.left, y = HubPos.y + HubMargin.top + 60, z = .11},
+ scale = 0.25,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ guiType = GuiType.TEXT,
+ text = 'Status',
+ name = '',
+ pos = {x = HubPos.x + HubMargin.left + 130, y = HubPos.y + HubMargin.top + 60, z = .11},
+ scale = 0.25,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ guiType = GuiType.TEXT,
+ text = 'Trade offers',
+ name = '',
+ pos = {x = HubPos.x + HubMargin.right + 200, y = HubPos.y + HubMargin.top + 60, z = .11},
+ scale = 0.25,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
{
guiType = GuiType.GUI_RECTANGLE,
pos = HubPos,
diff --git a/Assets/Scripts/Gui/tradingPlayerGuiTray.lua b/Assets/Scripts/Gui/tradingPlayerGuiTray.lua
index 79098c5..2e126a4 100644
--- a/Assets/Scripts/Gui/tradingPlayerGuiTray.lua
+++ b/Assets/Scripts/Gui/tradingPlayerGuiTray.lua
@@ -1,17 +1,17 @@
res = graphics.resolution
-buttonSize = {x = 100, y = 20}
+buttonSize = {x = 60, y = 20}
textboxSize = {x = 200, y = 20}
-height = HubPos.y + HubMargin.top + lineId * 30
+height = HubPos.y + HubMargin.top + 90 + lineId * 70
gui = {
{
guiType = GuiType.TEXT,
name = 'playerName',
text = '',
- pos = {x = HubPos.x + HubMargin.left, y = height + 35, z = .11},
- scale = {x = .2, y = .2},
+ pos = {x = HubPos.x + HubMargin.left, y = height + 40, z = .11},
+ scale = .2,
font = 'batang.ttf',
fontFirstChar = 0,
fontLastChar = 256,
@@ -19,8 +19,8 @@ gui = {
},
{
guiType = GuiType.GUI_RECTANGLE,
- pos = {x = HubPos.x + HubMargin.left + 100, y = height, z = .11},
- size = {x = 50, y = 50},
+ pos = {x = HubPos.x + HubMargin.left + 130, y = height, z = .11},
+ size = {x = 40, y = 40},
imagePath = relationsIcon
},
{
@@ -35,7 +35,7 @@ gui = {
buttonType = ButtonType.TRADING_SCREEN,
name = 'Trade',
guiScreen = 'tradingScreen.lua',
- pos = {x = HubPos.x + HubSize.x - buttonSize.x - HubMargin.right, y = height + 25, z = .11},
+ pos = {x = HubPos.x + HubSize.x - HubMargin.right - buttonSize.x, y = height + 25, z = .11},
size = buttonSize,
trigger = 10,
dependencies = {{id = 2}}
diff --git a/Assets/Scripts/Gui/tradingScreen.lua b/Assets/Scripts/Gui/tradingScreen.lua
index 2fab363..d1da4ec 100644
--- a/Assets/Scripts/Gui/tradingScreen.lua
+++ b/Assets/Scripts/Gui/tradingScreen.lua
@@ -3,7 +3,7 @@ HubMargin.top = 100
resTrayPos = {x = HubPos.x + HubMargin.left, y = HubPos.y + HubMargin.top}
iconSize = {x = 25, y = 25}
-textboxSize = {x = 200, y = 25}
+textboxSize = {x = 150, y = 25}
buttonSize = {x = 100, y = 20}
@@ -12,6 +12,9 @@ IconPath = {WEALTH = 'Icons/Resources/wealth.png', RESEARCH = 'Icons/Resources/r
function createResourceTrayGui(cpuPlayer, lineId, guiId, imgPath)
height = HubMargin.top + lineId * iconSize.y
+ tooltipOffset = {x = iconSize.x * (cpuPlayer and 1 or -1), y = -iconSize.y, z = .1}
+ tooltipSize = {x = 190, y = 20}
+ resourceAmountDelta = 10
if guiId == ResourceTrayGuiId.ICON then
guiElPos = {x = HubPos.x + (cpuPlayer and HubMargin.left or HubSize.x -(HubMargin.right + 3 * iconSize.x + textboxSize.x)), y = height, z = .2}
@@ -36,11 +39,18 @@ function createResourceTrayGui(cpuPlayer, lineId, guiId, imgPath)
return {
guiType = GuiType.BUTTON,
buttonType = ButtonType.RESOURCE_AMMOUNT,
- ammount = 10,
+ ammount = resourceAmountDelta,
name = '+',
pos = guiElPos,
size = iconSize,
- trigger = 10
+ trigger = 10,
+ tooltip = {
+ offset = tooltipOffset,
+ size = tooltipSize,
+ lines = {
+ {entry = {text = 'Increase value by ' .. resourceAmountDelta}},
+ }
+ }
}
elseif guiId == ResourceTrayGuiId.DECREMENT then
guiElPos = {x = HubPos.x + (cpuPlayer and HubMargin.left + 2 * iconSize.x + textboxSize.x or HubSize.x -(HubMargin.right + iconSize.x)), y = height, z = .2}
@@ -48,11 +58,18 @@ function createResourceTrayGui(cpuPlayer, lineId, guiId, imgPath)
return {
guiType = GuiType.BUTTON,
buttonType = ButtonType.RESOURCE_AMMOUNT,
- ammount = -10,
+ ammount = -resourceAmountDelta,
name = '-',
pos = guiElPos,
size = iconSize,
- trigger = 10
+ trigger = 10,
+ tooltip = {
+ offset = tooltipOffset,
+ size = tooltipSize,
+ lines = {
+ {entry = {text = 'Decrease value by ' .. resourceAmountDelta}},
+ }
+ }
}
end
end
@@ -117,7 +134,7 @@ gui = {
buttonType = ButtonType.PLAYER_TRADE,
name = 'Back',
guiScreen = 'tradingHub.lua',
- pos = {x = HubPos.x + HubSize.x - 3 * buttonSize.x - HubMargin.right, y = HubPos.y + HubSize.y - buttonSize.y - HubMargin.bottom, z = .2},
+ pos = {x = HubPos.x + HubSize.x - 2 * buttonSize.x - 2 * HubMargin.right, y = HubPos.y + HubSize.y - buttonSize.y - HubMargin.bottom, z = .2},
size = buttonSize,
trigger = 10
},
diff --git a/Assets/Scripts/Gui/unitGui.lua b/Assets/Scripts/Gui/unitGui.lua
index 8890486..e659db7 100644
--- a/Assets/Scripts/Gui/unitGui.lua
+++ b/Assets/Scripts/Gui/unitGui.lua
@@ -11,7 +11,7 @@ function generateButton(numGui, buttonData)
yOffset = (numGui + 1) % 2 == 0 and (buttonSize.y + buttonSpace.y) or 0
button = {
- pos = {x = buttonInitPos.x + xOffset, y = buttonInitPos.y + yOffset, z = .5},
+ pos = {x = buttonInitPos.x + xOffset, y = buttonInitPos.y + yOffset, z = buttonInitPos.z},
size = buttonSize,
guiType = GuiType.BUTTON,
name = buttonData.name,
@@ -22,6 +22,8 @@ function generateButton(numGui, buttonData)
factoryId = buttonData.factoryId,
engineerId = buttonData.engineerId,
guiScreen = buttonData.guiScreen,
+ tooltip = buttonData.tooltip,
+ amount = buttonData.amount,
slotId = buttonData.slotId
}
@@ -30,15 +32,50 @@ end
function generateGui(unitId)
local gui = {}
+ haltOrder = {
+ buttonType = ButtonType.ORDER,
+ orderType = OrderType.HALT,
+ name = 'Halt',
+ tooltip = {
+ offset = {x = buttonSize.x, y = -buttonSize.y, z = .1},
+ size = {x = 210, y = 20},
+ lines = {{entry = {text = "Cancel all unit\'s orders"}}}
+ }
+ }
vehicleButtonData = {
- {buttonType = ButtonType.UNIT_STATE, imagePath = 'Icons/Buttons/chase.png'},
- {buttonType = ButtonType.ORDER, orderType = OrderType.GARRISON, name = 'Garrison'},
- {buttonType = ButtonType.ORDER, orderType = OrderType.PATROL, name = 'Patrol'},
- {buttonType = ButtonType.ORDER, orderType = OrderType.HALT, name = 'Halt'},
- }
- structureButtonData = {
- {buttonType = ButtonType.ORDER, orderType = OrderType.HALT, name = 'Halt'}
+ {
+ buttonType = ButtonType.UNIT_STATE,
+ imagePath = 'Icons/Buttons/chase.png',
+ tooltip = {
+ offset = {x = buttonSize.x, y = -buttonSize.y, z = .1},
+ size = {x = 340, y = 120},
+ lines = {
+ {entry = {text = 'Toggle unit state'}},
+ {entry = {text = '(C)hase: automatically attacks and'}},
+ {entry = {text = 'pursues enemies'}},
+ {entry = {text = '(S)tand ground: automatically fires on'}},
+ {entry = {text = 'enemies but does not move'}},
+ {entry = {text = '(H)old fire: does not react to enemies'}},
+ }
+ }
+ },
+ {
+ buttonType = ButtonType.ORDER,
+ orderType = OrderType.GARRISON,
+ name = 'Garrison',
+ tooltip = {
+ offset = {x = buttonSize.x, y = -buttonSize.y, z = .1},
+ size = {x = 300, y = 60},
+ lines = {
+ {entry = {text = 'Garrison'}},
+ {entry = {text = 'Enter a garrisonable unit, such as a'}},
+ {entry = {text = 'transport ship'}},
+ }
+ }
+ },
+ haltOrder
}
+ structureButtonData = {haltOrder}
mainUnit = units[unitId + 1]
unitButtonData = mainUnit.isVehicle and vehicleButtonData or structureButtonData
@@ -47,7 +84,15 @@ function generateGui(unitId)
unitButtonData[#unitButtonData + 1] = {
buttonType = ButtonType.ORDER,
orderType = OrderType.EJECT,
- name = 'Eject'
+ name = 'Eject',
+ tooltip = {
+ offset = {x = buttonSize.x, y = -buttonSize.y, z = .1},
+ size = {x = 220, y = 40},
+ lines = {
+ {entry = {text = 'Eject'}},
+ {entry = {text = 'Eject all garrisoned units'}},
+ }
+ }
}
end
@@ -64,7 +109,13 @@ function generateGui(unitId)
name = abilButton.name,
buttonType = abilButton.buttonType,
guiScreen = abilButton.guiScreen,
- orderType = abilButton.orderType
+ orderType = abilButton.orderType,
+ amount = abilButton.amount,
+ tooltip = {
+ offset = {x = buttonSize.x, y = -buttonSize.y, z = .1},
+ size = abilButton.tooltip.size,
+ lines = abilButton.tooltip.lines
+ }
}
gui[#gui + 1] = generateButton(#gui, buttonData)
end
@@ -86,6 +137,8 @@ function generateGui(unitId)
mainUnit.unitClass == UnitClass.ENGINEER or
mainUnit.unitClass == UnitClass.FREEZER
)
+ costStr = '' .. units[buildUnit.id + 1].cost
+ buildTimeStr = '' .. units[buildUnit.id + 1].buildTime
buttonData = {
trigger = buildUnit.trigger,
@@ -94,7 +147,21 @@ function generateGui(unitId)
factoryId = (isFactory and unitId or nil),
engineerId = (isEng and unitId or nil),
imagePath = buildUnit.iconPath,
- slotId = (ButtonType.BUILD and i - 1 or nil)
+ slotId = (ButtonType.BUILD and i - 1 or nil),
+ tooltip = {
+ offset = {x = buttonSize.x, y = -buttonSize.y, z = .1},
+ size = {x = 220, y = 60},
+ lines = {
+ {entry = {text = units[buildUnit.id + 1].name}},
+ {
+ entry = {text = 'Cost: ' .. costStr .. ' ' .. buildTimeStr},
+ icons = {
+ {charId = 0, path = 'Resources/refineds.png'},
+ {charId = 9 + #costStr, path = 'Resources/time.png'}
+ }
+ },
+ }
+ }
}
gui[#gui + 1] = generateButton(#gui, buttonData)
diff --git a/Assets/Scripts/Gui/victory.lua b/Assets/Scripts/Gui/victory.lua
index 633459d..d969735 100644
--- a/Assets/Scripts/Gui/victory.lua
+++ b/Assets/Scripts/Gui/victory.lua
@@ -7,16 +7,16 @@ music = {
res = graphics.resolution
overlaySize = {x = 600, y = 450}
-overlayPos = {x = .5 * (res.x - overlaySize.x), y = 200, z = 0}
+overlayPos = {x = .5 * (res.x - overlaySize.x), y = 100, z = .2}
buttonSize = {x = 150, y = 40}
-buttonInitPos = {x = .5 * (res.x - buttonSize.x), y = 350, z = .1}
+buttonInitPos = {x = .5 * (res.x - buttonSize.x), y = 250, z = .3}
gui = {
{
guiType = GuiType.TEXT,
text = 'VICTORY!!!',
name = 'V',
- pos = {x = overlayPos.x + 20, y = overlayPos.y + 75, z = .1},
+ pos = {x = overlayPos.x + 20, y = overlayPos.y + 75, z = .3},
scale = 1,
font = 'batang.ttf',
fontFirstChar = 0,
diff --git a/Assets/Scripts/Gui/videoTab.lua b/Assets/Scripts/Gui/videoTab.lua
index 3ee280e..e0b0193 100644
--- a/Assets/Scripts/Gui/videoTab.lua
+++ b/Assets/Scripts/Gui/videoTab.lua
@@ -1,8 +1,29 @@
-numGui = 9
gui = {
{
- pos = {x = 210, y = 190, z = 0},
- size = {x = 360, y = 20},
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Video',
+ pos = {x = 20, y = 50, z = 0},
+ scale = .5,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ guiType = GuiType.TEXT,
+ name = '',
+ text = 'Resolution',
+ pos = {x = 20, y = 100, z = 0},
+ scale = .2,
+ font = 'batang.ttf',
+ fontFirstChar = 0,
+ fontLastChar = 256,
+ color = {x = 1, y = 1, z = 1, w = 1}
+ },
+ {
+ pos = {x = 20, y = 100, z = 0},
+ size = {x = 120, y = 20},
guiType = GuiType.LISTBOX,
listboxType = ListboxType.RESOLUTION,
numMaxDisplay = 5,
@@ -14,41 +35,21 @@ gui = {
}
},
{
- pos = {x = 110, y = 40, z = 0},
- guiType = GuiType.CHECKBOX
- },
- {
- pos = {x = 110, y = 70, z = 0},
- guiType = GuiType.CHECKBOX
- },
- {
- pos = {x = 110, y = 100, z = 0},
- guiType = GuiType.CHECKBOX
- },
- {
- pos = {x = 110, y = 130, z = 0},
- guiType = GuiType.CHECKBOX
- },
- {
- pos = {x = 110, y = 160, z = 0},
- guiType = GuiType.CHECKBOX
- },
- {
- pos = {x = 100, y = 400, z = 0},
+ pos = {x = 20, y = 310, z = 0},
size = {x = 150, y = 20},
guiType = GuiType.BUTTON,
name = 'Ok',
buttonType = ButtonType.OK
},
{
- pos = {x = 260, y = 400, z = 0},
+ pos = {x = 180, y = 310, z = 0},
size = {x = 150, y = 20},
guiType = GuiType.BUTTON,
name = 'Restore defaults',
buttonType = ButtonType.DEFAULTS
},
{
- pos = {x = 420, y = 400, z = 0},
+ pos = {x = 340, y = 310, z = 0},
size = {x = 150, y = 20},
guiType = GuiType.BUTTON,
name = 'Back',
diff --git a/Assets/Textures/Icons/Resources/time.png b/Assets/Textures/Icons/Resources/time.png
index ae1ba7c..a671a83 100644
Binary files a/Assets/Textures/Icons/Resources/time.png and b/Assets/Textures/Icons/Resources/time.png differ
diff --git a/Assets/Textures/Icons/Resources/time.svg b/Assets/Textures/Icons/Resources/time.svg
index 8462ec8..0de6591 100644
--- a/Assets/Textures/Icons/Resources/time.svg
+++ b/Assets/Textures/Icons/Resources/time.svg
@@ -7,7 +7,7 @@
viewBox="0 0 210 297"
version="1.1"
id="svg1"
- inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
+ inkscape:version="1.4.4 (dcaf3e7d9e, 2026-05-05)"
sodipodi:docname="time.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
@@ -23,9 +23,9 @@
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
- inkscape:zoom="1.0733976"
- inkscape:cx="429.47738"
- inkscape:cy="417.36631"
+ inkscape:zoom="0.75900672"
+ inkscape:cx="334.64789"
+ inkscape:cy="388.0071"
inkscape:window-width="1918"
inkscape:window-height="1058"
inkscape:window-x="0"
@@ -39,23 +39,24 @@
inkscape:groupmode="layer"
id="layer1">
+ inkscape:export-xdpi="46.181816"
+ inkscape:export-ydpi="46.181816" />
+ x="21.99954"
+ y="144.25369"
+ transform="rotate(-50.109638)" />
#include
#include