Commit graph

28 commits

Author SHA1 Message Date
Celtic Minstrel
c55d7cb50a Reformat unit_topic_generator 2016-03-21 12:50:05 -04:00
Charles Dang
c82807aea3 Allow use of small_profile in help browser if specified 2016-03-21 13:00:40 +11:00
Celtic Minstrel
bc711f5f43 Consolidate related files into subdirectories 2016-03-20 16:20:09 -04:00
gfgtdf
969157d79e fix color in help unit resitances
https://gna.org/bugs/?24381
2016-02-08 21:10:28 +01:00
Charles Dang
eb80320adf Flip unit portraits so crop is facing window border 2016-02-04 18:37:11 +11:00
Chris Beck
ba51524f6e update copyright to year 2016
using this shell script:

find src -type f -print0 | xargs -0 sed -i "s|Copyright (C) \([[:digit:]]*\)\([ ]*\)-\([ ]*\)2015|Copyright (C) \1\2-\32016|g"
2016-01-02 23:59:31 -05:00
Elvish_Hunter
9b7b1751fd Removed trailing tabs and whitespaces from C++ source
I used this command line: find <source directory> -name \*.\[ch\]pp -print0 | xargs -0 sed -i 's/[[:blank:]]*$//'
2015-12-21 20:39:46 +01:00
Charles Dang
75d125d070 Use full-size portraits in unit help pages (experimental) 2015-12-17 06:59:49 +11:00
Charles Dang
2eaa391a7f Replace synonymous build level with functional equivalent 2015-12-05 11:56:10 +11:00
Charles Dang
cd50036363 Restore a check to prevent portrait-less units from using a scaled sprite instead 2015-08-09 14:42:28 +11:00
Ignacio R. Morelle
c2c1dac618 Fix code typos resulting in compilation errors 2015-07-18 16:39:59 -03:00
Charles Dang
af17045bd1 Fixup 662a1d639a
The third check against "unit_image" is probably the wrong way to do this, but for now it works
2015-07-19 00:23:32 +11:00
Charles Dang
662a1d639a help: don't show any portrait for profile=unit_image 2015-07-18 23:42:23 +11:00
Charles Dang
57ad85a17b help: automatically scale unit_type.profile in the absence of unit_type.small_profile
Prior to this, profile= was used in the absence of small_profile, but not scaled, requiring
the manual specification of a 'small_profile=profile~SCALE()' line in unit type files if no
unique small profile image was provided. Since it appears the help browser is the only place
that used small_profile, we move the scaling here.

The standard value of 205x205 is used.
2015-07-18 22:03:34 +11:00
Ignacio R. Morelle
ef0eb55f24 Use prefix instead of postfix increment/decrement
Found by cppcheck.
2015-07-06 23:40:30 -03:00
Ignacio R. Morelle
3d2be54498 help: Rename Defense Capped column to Defense Cap column
This appears to have been originally implemented as a list of yes/no
values, and later reworked to show the actual cap percentages, so the
column header isn't entirely correct anymore.
2015-04-16 18:35:26 -03:00
Charles Dang
925ee2152d Don't draw boxes around unit sprites in help 2015-03-16 04:57:21 +11:00
Charles Dang
b121264050 Don't use numeric reference for TC palette 2015-03-16 04:11:02 +11:00
Ignacio R. Morelle
57ae45387a New Year copyright update 2015-01-01 19:07:35 -03:00
Charles Dang
08352806cc Display unit level under name, as opposed to next to image 2014-12-25 22:20:48 +11:00
Ignacio R. Morelle
cd022369aa Request translating "[Mov/Def] properties" strings at runtime (bug #22901)
Not quite what was reported in bug #22901 but it has the same cause and
symptoms with different strings.
2014-12-23 05:02:45 -03:00
Ignacio R. Morelle
a7de5c4a21 Add space after commas in base terrain lists in terrain descriptions in help 2014-12-23 05:01:40 -03:00
Charles Dang
aaa6e011b8 Don't allocate space for missing terrain help descriptions 2014-12-23 18:44:12 +11:00
Ignacio R. Morelle
bedfe1210f Request translating "Base Terrain: " string at runtime (bug #22901) 2014-12-22 22:31:15 -03:00
Charles Dang
0397b0d059 Add two newlines under terrain icon and editor image 2014-12-23 12:09:22 +11:00
Ignacio R. Morelle
92be8cd73d Fix broken help crosslinks for unit types with all-hidden variations
Regression introduced in 6fe72e893f.
Affected master only, because I missed two relevant lines when manually
forward-porting its 1.12 counterpart.
2014-12-22 21:17:13 -03:00
Chris Beck
925b999b5c add some missing copyright statements 2014-11-20 20:04:12 -05:00
Chris Beck
f969e60ca5 split off help topic generators into their own file 2014-11-11 11:55:06 -05:00