mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-10-03 06:54:42 +00:00
Fixed (uncommon) case of scrolling text in the map window.
This commit is contained in:
parent
572a22fa65
commit
9e5fe1262a
@ -266,8 +266,7 @@ end
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
def _loadGame()#1
|
||||
setMapWindow()
|
||||
clearWindow()
|
||||
useMapWindow()
|
||||
showMapName("Loading game...")
|
||||
|
||||
// Open the file
|
||||
|
@ -114,7 +114,7 @@ import gamelib
|
||||
predef setGround(num)#0
|
||||
predef setIntimateMode(enable)#0
|
||||
predef setMap(is3D, num, x, y, dir)#0
|
||||
predef setMapWindow()#0
|
||||
predef useMapWindow()#0
|
||||
predef setBigWindow()#0
|
||||
predef setPortrait(portraitNum)#0
|
||||
predef setScriptInfo(mapName, trigTbl, wdt, hgt)#0
|
||||
|
@ -1456,12 +1456,16 @@ export def setWindow3()#0
|
||||
end
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Window for the map area (used for clearing it)
|
||||
export def setMapWindow()#0
|
||||
// Clear map window, then set a text area within it.
|
||||
export def useMapWindow()#0
|
||||
if frameLoaded == 3 // don't check mapIs3D, since we might be in an engine
|
||||
setWindow(24, 153, 14, 140) // Top, Bottom, Left, Right
|
||||
setWindow(24, 154, 14, 140) // Top, Bottom, Left, Right
|
||||
clearWindow()
|
||||
setWindow(24, 150, 14, 140) // Top, Bottom, Left, Right
|
||||
else
|
||||
setWindow(24, 169, 14, 140) // Top, Bottom, Left, Right
|
||||
clearWindow()
|
||||
setWindow(24, 168, 14, 140) // Top, Bottom, Left, Right
|
||||
fin
|
||||
end
|
||||
|
||||
@ -1967,7 +1971,7 @@ export def setMap(is3D, num, x, y, dir)#0
|
||||
else
|
||||
flipToPage1()
|
||||
showMapName("Traveling...")
|
||||
setMapWindow(); clearWindow()
|
||||
useMapWindow()
|
||||
mapIs3D = is3D
|
||||
mapNum = num
|
||||
allowZoneInit = TRUE
|
||||
@ -2188,8 +2192,7 @@ export def setPortrait(portraitNum)#0
|
||||
unloadTextures()
|
||||
|
||||
// Now clear out the map area
|
||||
setMapWindow()
|
||||
clearWindow()
|
||||
useMapWindow()
|
||||
|
||||
// Restore the cursor position
|
||||
setWindow2()
|
||||
@ -2529,7 +2532,7 @@ end
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
def help()#1
|
||||
flipToPage1()
|
||||
setMapWindow(); clearWindow()
|
||||
useMapWindow()
|
||||
loadEngine(GS_HELP)()
|
||||
returnFromEngine(TRUE)
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user