Added "tolower", "toupper" script functions

Renamed TravelMarkerDots to TravelMarkerStyles.
This commit is contained in:
NovaRain
2020-01-16 09:34:53 +08:00
parent 14e2ee2064
commit dd7613c910
7 changed files with 43 additions and 2 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ WorldMapTravelMarkers=0
;TravelMarkerColor=134
;The length and spacing of the dots in pixels for each type of terrain in worldmap.txt
;Syntax is 'length:spacing', with each pair separated by a comma (valid range: 1..10; default is 2)
;TravelMarkerDots=2:2,2:2,2:2,2:2
;TravelMarkerStyles=2:2,2:2,2:2,2:2
;Set to 1 to display terrain types when hovering the cursor over the player's marker on the world map
WorldMapTerrainInfo=0
+2
View File
@@ -325,6 +325,8 @@
#define string_format(format, a1, a2) sfall_func3("string_format", format, a1, a2)
#define tile_by_position(x, y) sfall_func2("tile_by_position", x, y)
#define tile_refresh_display sfall_func0("tile_refresh_display")
#define tolower(text) sfall_func1("tolower", text)
#define toupper(text) sfall_func1("toupper", text)
#define unjam_lock(obj) sfall_func1("unjam_lock", obj)
#define unset_unique_id(obj) sfall_func2("set_unique_id", obj, -1)
#define unwield_slot(critter, slot) sfall_func2("unwield_slot", critter, slot)
@@ -697,6 +697,14 @@ optional argument:
- returns the tile number at the x, y position relative to the top-left corner of the screen
- if the position is outside of the range of tiles, it will return -1
> string sfall_func1("tolower", string text)
- converts all uppercase letters in the given string to lowercase
- returns -1 on argument error
> string sfall_func1("toupper", string text)
- converts all lowercase letters in the given string to uppercase
- returns -1 on argument error
------------------------
------ MORE INFO -------
------------------------