Commit Graph

50 Commits

Author SHA1 Message Date
c5f0b5d7be Hide the lower session panel if nothing is selected
This was SVN commit r8566.
2010-11-11 16:00:53 +00:00
dde2cd38be Show Population Cost in unit training buttons
Show Population Bonus in unit construction buttons

This was SVN commit r8559.
2010-11-08 23:23:52 +00:00
e7b5f9eeb9 Allow up to 24 construction or training buttons
Add tooltip of generic name back to the unit name
Move civ name to player name tooltip
Make player name colored with the player color again

This was SVN commit r8538.
2010-11-06 01:55:29 +00:00
6373c2cfcb Made GUI always visible
Adjusted size of icon buttons in the session GUI
Allowed support units to garrison in watch towers

This was SVN commit r8458.
2010-10-24 23:40:09 +00:00
b100ba5a08 Show a 1 when only a single unit remains garrisoned (re-fixes #610)
This was SVN commit r8457.
2010-10-24 18:01:11 +00:00
ec27e78e60 Clear out the displayed garrison quantity number if no units are garrisoned
This was SVN commit r8454.
2010-10-24 01:32:35 +00:00
3521c8f51e Made garrisoning based on the quantity of units, not the population cost of those units.
This was SVN commit r8453.
2010-10-24 01:14:34 +00:00
0aaddf62aa Garrisoning for buildings based on patch by Evans (fixes #610)
This was SVN commit r8451.
2010-10-23 22:43:15 +00:00
24fb9cd313 Split unit icon sheets into individual textures, for easier editing
This was SVN commit r8440.
2010-10-22 23:27:42 +00:00
937769035a Only show formation icons for units
This was SVN commit r8407.
2010-10-17 20:01:18 +00:00
3fce7d86f3 Temporarily re-enable fake formations in GUI
This was SVN commit r8350.
2010-10-13 21:40:56 +00:00
0c61f34db1 Reference group count by name instead of templateName
This was SVN commit r8347.
2010-10-13 20:16:03 +00:00
bd3ffd2c6a Reworked EntityGroups
Moved selection size check into selection.js

This was SVN commit r8346.
2010-10-13 19:48:13 +00:00
69b2581ff0 Preparation for garrison code
This was SVN commit r8295.
2010-10-06 18:55:46 +00:00
ca223eeb5b Made multiple unit selection health bar vertical again
Increased unit selection icons to 16
Added total unit count

This was SVN commit r8292.
2010-10-06 04:19:25 +00:00
ff8477c339 Made unit selection icons the same size as the formation icons
This was SVN commit r8291.
2010-10-05 22:44:32 +00:00
eff766d6b9 Made ESC close out open dialogs rather than offer to close the game
Fixed the multiple unit health bar failing to work correctly
Changed multiple selection area to fit layout better.
Organized code

This was SVN commit r8256.
2010-10-03 22:42:15 +00:00
8a01e11db7 Health bar shows average for multiple selections
Center panel texture shrunk and dark tile texture is tiled over the
panels better
Command icons reference new sheet

This was SVN commit r8236.
2010-10-01 22:18:03 +00:00
61fa8d29f6 Some more in-game GUI progress. Multiple selections now look more like the mockup, but all the stats icons and bars still reference the first unit. I will fix that part later.
This was SVN commit r8216.
2010-09-30 22:39:45 +00:00
54142e5ee8 Some more progress towards Michael's GUI design.
This was SVN commit r8213.
2010-09-29 21:55:51 +00:00
41819d3189 Moved notification area to rest on right side of lower panel.
(Hide right panel when not used)

This was SVN commit r8206.
2010-09-28 18:31:40 +00:00
b2278e56a6 Fixed menu graphics
Misc consistency improvements
Added pause hotkey

This was SVN commit r8204.
2010-09-28 17:40:41 +00:00
ea7c2e569c Michael's new GUI layout
(I made some changes to some parts which can always be changed back.
It's still a work in progress.)

This was SVN commit r8200.
2010-09-28 14:19:13 +00:00
fa1dc05de2 New GUI layout
Delete confirmation dialog
Resource bar replaces resource quantity/icon
Selected units are grouped by type regardless of rank
Ranked units use the same icon
"Basic" units are now considered to have the rank of "Basic" for
grouping purposes

This was SVN commit r8180.
2010-09-25 15:22:41 +00:00
0a98fbaba2 Cache the Entity States and Templates to increase performance
This was SVN commit r8037.
2010-08-28 21:12:52 +00:00
5ee7f7b178 Reworked selection details and rank code
Added rank tag to templates to avoid string parsing

This was SVN commit r7995.
2010-08-17 13:37:46 +00:00
7a2fac889f Enabled template tooltips
This was SVN commit r7988.
2010-08-17 00:55:02 +00:00
d2e6233c44 Fixed HP display issues in GUI
This was SVN commit r7864.
2010-08-07 00:21:17 +00:00
4f2d9ee128 Fixed bandboxed entity preference code from relying on parsing template names
New rules for preferences:
 units
 defensive
 others

This was SVN commit r7857.
2010-08-06 00:29:58 +00:00
a5171d9145 Just display the delete button until the other commands are implemented
This was SVN commit r7843.
2010-08-03 01:54:16 +00:00
67e3a95d74 Added Delete Hotkey
Misc minor changes

This was SVN commit r7835.
2010-08-01 16:25:24 +00:00
aa2d305b6e Added working delete button
This was SVN commit r7832.
2010-08-01 05:09:30 +00:00
dd2fcad2a2 Fixed fractional resources showing up in the GUI
This was SVN commit r7831.
2010-08-01 00:33:20 +00:00
be59106400 Cleaned up code (slight redesign)
Added more wood to trees
 Standard trees 100 -> 300
 Special trees 300 -> 500

This was SVN commit r7829.
2010-07-31 21:46:25 +00:00
ba591b6d9f Redesigned the selection GUI
No more groups of any kind
Max selection size increased to 32

Single click - deselects all others
Single click with shift key - deselects all that are not the same type
(only for one rank)

This was SVN commit r7826.
2010-07-30 22:19:43 +00:00
6af3f28ad4 Converted resources:
wood -> wood.tree
 stone -> stone.rock
 metal -> metal.ore
Added resource: metal.treasure
Renamed cursors and added placeholder treasure cursor
Fixed basic templates and Hellene actors to work with new resources
(need to fix Celt actors)
Fixed some warnings in the session scripts.
Added entity "Golden Fleece" placeholder

This was SVN commit r7778.
2010-07-21 18:51:27 +00:00
9674c3c0fe Remove ScriptingHost initialisation code (share with ScriptInterface instead).
Fix GUI scripts to avoid strict warnings.
Rejig GUI/SpiderMonkey interface to use less custom code, and to work
with JSOPTION_VAROBJFIX.
Add event name to GUI event handler function names (visible in the
profiler).

This was SVN commit r7769.
2010-07-19 23:01:58 +00:00
0be1713b2b Made several changes to session GUI (cosmetic).
Up/down arrow sprites are usable as regular buttons now.

Selections now group ranked units together as a single group. This
feature can be toggled in the settings window. Depending on feedback, I
will probably choose one method over the other and remove the toggle.

New map - Mountain Pass (8 player)
It will need further polishing.

This was SVN commit r7766.
2010-07-19 21:23:12 +00:00
ae823038bd Added <IconSheet></IconSheet> attribute to entities
Added icon_sheet attribute to GUI interface
Made session GUI reference template.icon_sheet

This was SVN commit r7761.
2010-07-16 02:45:22 +00:00
9b88e46fce Code cleanup
This was SVN commit r7727.
2010-07-09 00:19:36 +00:00
db8dda7bda Used Hele portrait sheet for units that begin with "camp"
Made button layout ever so slightly more efficient
Fixed some more Hellene animation speeds

This was SVN commit r7713.
2010-07-07 13:28:37 +00:00
1bfb913a69 Fixed attempt to perform a string operation on a template instead of the template name
Worked on Hellene actor animation speeds
(They will still need some more tweaking)

This was SVN commit r7702.
2010-07-06 01:23:50 +00:00
5be1052ad0 Fixed a GUI selection display bug where the final element of a large selection was wrapping around and replacing the first selection group.
Added and removed some utility functions in session.js

This was SVN commit r7701.
2010-07-05 23:04:38 +00:00
5d224bbeb6 Added tooltip to rank icon
Some code cleanup / rework
Minor fixes

This was SVN commit r7696.
2010-07-05 16:50:06 +00:00
3af3cbe99a Fixed the GUI selection issue where killed units were not being removed from the selection or the selection display
This was SVN commit r7683.
2010-07-04 01:03:14 +00:00
065f0deea3 Added third row of buttons to layout
This was SVN commit r7679.
2010-07-03 16:51:20 +00:00
e23d4d232a Added rank icon
Removed displayed rank name (functions still available)
Fixed error with color name

This was SVN commit r7675.
2010-07-03 15:06:31 +00:00
be2e1b158a Made player colors work for player names
Used civ name for the player name's tooltip
Created some additional utility functions

(finishing previous commit that was interrupted due to
some files being out of date)

This was SVN commit r7665.
2010-07-02 21:42:17 +00:00
98a7d67b43 Player name now references actual player name (almost)
Added civ name to tooltip of player name
Player colors hacked in (to at least look consistent)
Made icons reference proper portrait sheets

This was SVN commit r7662.
2010-07-02 02:50:45 +00:00
8f48d0f007 Moved menu code out into:
menu.js

Moved selection details and unit commands code out into:
selection_details.js
unit_commands.js

Deleted some unused sprites

This was SVN commit r7659.
2010-07-01 20:31:47 +00:00