Commit Graph

34 Commits (master)

Author SHA1 Message Date
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 2459f78bd5 Clean up component definition, remove useless COMP_UNKNOWN and wrong comments. 2013-05-05 20:50:51 +02:00
Cyp 5e541b53cc widget: Simplify fancy button display and highlight code. 2013-03-13 19:05:50 +01:00
Cyp 951ceb168c widget: Simplify button rendering interface.
Converted some functions to member functions.
2013-03-13 18:24:30 +01:00
Cyp 5208053034 widget: Centralise button rotation management. 2013-03-13 09:08:19 +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 1240e7c96c widget: Remove unused and useless W_TABFORM. 2013-03-12 09:32:55 +01:00
Cyp 685e77c884 widget: Convert the intelmap stuff from W_TABFORMs to ListTabWidgets. 2013-03-12 09:12:55 +01:00
Cyp c6274f3d33 widget: Make IntFormAnimate self-delete after closing.
This eliminates boilerplate code growing in src/hci.cpp for each animated form.
2013-02-28 10:07:36 +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 002232ebd7 widget: Make W_TABFORMs less special. 2013-02-19 19:31:39 +01:00
Cyp f7de883d05 widget: Replace WBUTS_GREY, WBUTS_LOCKED, WBUTS_CLICKLOCK with WBUT_DISABLE, WBUT_LOCK, WBUT_CLICKLOCK.
This makes more sense than translating between them.
2013-02-18 18:35:07 +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 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
per 316124b05e Reorganize some drawing functions to reduce size of public drawing API. Clean up window rendering. 2013-02-02 20:03:58 +01:00
vexed 6c6fe7c38a Merge branch 'bugfixes'
Conflicts:
	src/e3demo.cpp
	src/e3demo.h
2013-01-16 15:44:22 -05:00
vexed e34e7e4e0c Seems time don't stop, so bump the year to 2013. 2013-01-16 15:34:57 -05:00
automerge d24719344d Merge branch 'bugfixes' 2013-01-11 08:08:21 +01:00
Cyp 40cbe8067b cleanup: Remove some unused defines. 2013-01-09 12:53:03 +01:00
Per Inge Mathisen 112b7491cc Dead code removal and stylistic cleanup 2012-07-28 12:01:11 +02:00
vexed 361212d906 Revert back to flashing the intel button by default. (New players to the game have no idea what "New Intelligence Report" meant if they don't have the vids installed) 2012-04-03 21:39:03 -04:00
vexed 3e15039aa6 Unfortunately, the Project can't stop time, so bump the year. 2012-02-11 16:50:52 -05:00
Per Inge Mathisen cba727f1b7 Output utf8 from research messages 2012-01-07 19:21:22 +01:00
Per Inge Mathisen 545eb5c272 Convert research message data to ini file format. 2012-01-07 19:14:34 +01:00
Per Inge Mathisen d35b8b4111 cppcheck warning fixes, including a real fix for bad iterator code. 2011-12-12 23:37:31 +01:00
abomination a72c41aeec fix [s]BOOL[/s] bool by 4B0/\/\1|\|4710|\|
[Edit by Cyp: Removed a "typedef int bool;" when building on non-windows.]
2011-03-13 12:32:24 +01:00
Cyp ae2ce18314 Bump year.
sed -i 's/\(Copyright (C) .*-201\)0\( *Warzone 2100 Project\)/\11\2/' {src,lib/*{,/*}}/*.{c,cpp,h,y,l}
2011-02-25 18:45:27 +01:00
Cyp 4fb9e61548 Remove unused TEXT_DISPLAY, improve format string consistency and remove weird casts. 2011-01-18 00:20:04 +01:00
cybersphinx 96376b088e Fix compilation with g++ 4.6.
Most of this just removes unused variables. Closes #2437.
2011-01-08 18:23:01 +01:00
Per Inge Mathisen 67e9635f9f Merge the ivis_common and ivis_opengl directories, only five years and two months after I originally split them apart. 2010-12-31 22:37:14 +01:00
Cyp 76430c583f Use default constructors instead of memset for W_INIT (widget init) derivatives.
Accidentally fixed 5 memsets of W_FORMINIT, which were incorrectly using sizeof(W_BUTINIT). (The sizeof() was smaller than the object, so it didn't overflow, at least.)

And removed an ugly memset of a DROID.
2010-12-22 17:26:39 +01:00
Cyp 0646b37603 Rename *.c to *.cpp. 2010-12-16 23:28:56 +01:00