per
d9353c1701
Remove useless parameter from PIE button display functions.
2013-10-20 01:05:10 +02:00
Cyp
714727e241
Allow designing and building obsolete tanks.
...
Since you sometimes might want to a bunch of cheap MG tanks as a decoy, even if you have twin AG researched.
Also, remove an unrelated uselessly-duplicated test in action.cpp.
2013-05-22 23:57:45 +02:00
per
b5fa742274
Add workaround for assert failure when designing a commander
2013-05-19 20:57:12 +02:00
per
e7e643c05b
Fix possible crash bug, remove useless casts to const chars, and remove duplicate macro getStatName().
2013-05-13 23:11:34 +02:00
per
911d02e24f
Remove useless statRefStart(), statType() and componentType().
2013-05-13 22:20:49 +02:00
per
100f5e9560
Use 'names' fields in ini files instead of looking up names in names.txt
2013-05-12 23:50:57 +02:00
per
9c8f362c2c
More data cleanup
2013-05-11 23:51:49 +02:00
per
678e281b50
Convert templates to ini file format. Thanks to Duha for file conversions.
...
This closes ticket:4005.
2013-05-09 23:17:05 +02:00
per
36d0e3e7be
Trim size of template structure
2013-05-09 13:25:40 +02:00
per
545832358b
Convert functions.txt to handle upgrades from within javascript and research.ini.
...
hackChangeMe() can no longer take -1, instead add new receiveAllEvents(bool) function
for that purpose. Campaign upgrades are not yet converted. All 'Power' settings in
ini files are changed, since they used meaningless values, to 'PowerLevel' with 0..2
values that correspond to button settings.
2013-05-05 13:34:59 +02:00
Cyp
64c2fde0dd
Merge branches 'bugfixes' and 'widget'
...
Conflicts:
src/ingameop.cpp
src/intelmap.cpp
2013-03-15 08:50:10 +01:00
Cyp
b3008cf05c
widget: Move lots of complicated buffer management into a few member variables.
2013-03-13 08:57:13 +01:00
Cyp
a637140537
widget: Remove CurrentStatsTemplate.
2013-03-12 10:22:42 +01:00
Cyp
2521e71729
widget: Remove write-only RENDERED_BUTTON::Initialised and RENDERED_BUTTON::State, and related dead code.
2013-03-12 09:54:53 +01:00
Cyp
1240e7c96c
widget: Remove unused and useless W_TABFORM.
2013-03-12 09:32:55 +01:00
Cyp
43b62d5a7e
widget: Convert the transport menus from W_TABFORMs to ListTabWidgets.
2013-03-12 00:27:15 +01:00
Cyp
4194dbf27e
widget: Convert the design menu from W_TABFORMs to ListTabWidgets.
2013-03-10 14:29:28 +01:00
Cyp
6a71410927
widget: Replace intOpenPlainForm, intDisplayPlainForm and intClosePlainForm with IntFormAnimated class.
...
Animation variables are no longer part of W_FORM.
2013-02-28 08:29:08 +01:00
Cyp
eb3b88ac1d
widget: Remove W_FORM::aColours and associated WZ_DECL_UNUSED PIELIGHT *pColours spam throughout the code.
2013-02-26 10:45:50 +01:00
Cyp
c19c853b10
widget: Factor out usage of widgSetColour(), and remove it.
2013-02-26 00:24:53 +01:00
Cyp
d87282ba96
widget: Remove no-longer-meaningful WIDG_MAXSTR.
...
A QString generally isn't limited to 80 bytes.
2013-02-24 10:06:51 +01:00
Cyp
fcedae2fcf
widget: Unduplicate more W_TABWIDGET code.
2013-02-19 19:33:33 +01:00
Cyp
002232ebd7
widget: Make W_TABFORMs less special.
2013-02-19 19:31:39 +01:00
Cyp
a60f592fe1
widget: Replace WCLICK_GREY, WCLICK_LOCKED, WCLICK_CLICKLOCK with WBUT_DISABLE, WBUT_LOCK, WBUT_CLICKLOCK.
...
This makes more sense than translating between them.
2013-02-18 20:50:37 +01:00
Cyp
b173b57a36
widget: Convert WIDGET::x,y,width,height to member functions.
2013-02-18 09:05:01 +01:00
Cyp
2f5d244b4c
widget: Convert WIDGET::display to virtual function.
...
Fixes a sign error in tabVertOffset for WFORM_TABBOTTOM.
2013-02-17 08:42:55 +01:00
Cyp
292dca6ed8
widget: Replace WIDGET::psNext with WIDGET::childWidgets/parentWidget, move most clean up to ~WIDGET().
2013-02-16 00:37:30 +01:00
per
9ef70b7b8f
Cleanup backdrop display code.
2013-02-13 23:06:39 +01:00
Cyp
4fa3552838
widget: Remove unused minor tabs from tab forms.
...
Tab forms had major and minor tabs, but only the major tabs were used, despite a lot of code all over the place for
handling minor tabs.
2013-02-13 10:36:41 +01:00
Cyp
1286f91795
widget: Convert setTip functions to member functions.
2013-02-12 09:31:49 +01:00
per
f95e7027ad
Run astyle over design.cpp
2013-02-02 22:47:48 +01:00
per
4f93d4bf6e
Clean up design.cpp
2013-02-02 22:34:16 +01:00
per
686ee5496a
Un-generalize iV_DrawImageRect() into iV_DrawImageRepeatX/Y().
2013-02-02 20:38:13 +01:00
per
13dbbf1b4d
Merge remote-tracking branch 'origin/bugfixes'
...
Conflicts:
src/qtscriptfuncs.cpp
src/scriptfuncs.cpp
2013-01-21 22:21:02 +01:00
per
8149dc94c0
Fix bug that made droids produced by scripts get human player's upgrades.
2013-01-21 22:17:58 +01:00
per
dafc192da4
Add check to prevent scripts from building VTOLs with non-VTOL weapons in factories.
2013-01-21 21:32:44 +01:00
per
391492ddfc
qtscript: Add new events eventPlayerLeft(player index) for when a player leaves
...
the game, and eventDesignCreated(template) for when a player creates a new design
in the design GUI.
2013-01-17 18:22:01 +01:00
vexed
e34e7e4e0c
Seems time don't stop, so bump the year to 2013.
2013-01-16 15:34:57 -05:00
Cyp
40cbe8067b
cleanup: Remove some unused defines.
2013-01-09 12:53:03 +01:00
vexed
fcede64e42
Create new droid type, DROID_SUPERTRANSPORTER.
...
fixes ticket:3196
2012-02-25 19:21:29 -05:00
crabster
60fb815bf3
Extending components limit in unit design GUI
...
Fixes ticket:3160
Limit of components to design increased to 128.
2012-02-20 01:01:41 +04:00
vexed
3e15039aa6
Unfortunately, the Project can't stop time, so bump the year.
2012-02-11 16:50:52 -05:00
crabster
2e03931307
Fix incorrect speed bars for vtol.
...
Fixes ticket:3143
2012-02-10 17:15:33 +04:00
Cyp
6e00044711
Eliminate quantisation errors from the button rotation rate.
...
Added a realTimeAverage() function which returns an integer which is correct on average.
Fixes ticket:3082.
2012-01-29 08:55:22 +01:00
Per Inge Mathisen
ceaedde9ad
qtscript: No longer exposing the template system to the AI. Each droid
...
is composed from its components each time instead. Some cleanup of design
function declarations.
2011-12-29 17:13:04 +01:00
Per Inge Mathisen
84a54e705f
Add possibility of limiting weapons by body size by classifying them as
...
either light or heavy. Light weapons can only be added to light bodies,
while heavy weapons cannot be put on light bodies.
2011-12-28 14:37:48 +01:00
Per Inge Mathisen
f993207fcc
qtscript: Template functions sort of work now.
2011-12-27 15:02:42 +01:00
cybersphinx
962bb6d219
Update store/delete template tooltip.
2011-12-19 00:52:12 +01:00
cybersphinx
4f1b79d3d9
New icon for store/delete templates.
2011-12-19 00:52:12 +01:00
Per Inge Mathisen
e3a981c4f8
Check number of weapons in a stored template to prevent stored template cheating.
2011-12-18 23:42:25 +01:00