Add a setting to pause the shellmap.
This commit is contained in:
@@ -188,12 +188,19 @@ Background@SETTINGS_PANEL:
|
||||
Font: Regular
|
||||
Text: Increase Cursor Size
|
||||
Checkbox@PLAYER_STANCE_COLORS_CHECKBOX:
|
||||
X: 310
|
||||
X: 195
|
||||
Y: 133
|
||||
Width: 200
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Player Stance Colors
|
||||
Checkbox@PAUSE_SHELLMAP_CHECKBOX:
|
||||
X: 375
|
||||
Y: 133
|
||||
Width: 200
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Pause Menu Background
|
||||
Label@VIDEO_TITLE:
|
||||
Y: 190
|
||||
Width: PARENT_RIGHT
|
||||
|
||||
@@ -147,8 +147,10 @@ speed = 5
|
||||
Tick = function()
|
||||
ticks = ticks + 1
|
||||
|
||||
local t = (ticks + 45) % (360 * speed) * (math.pi / 180) / speed;
|
||||
Camera.Position = viewportOrigin + WVec.New(19200 * math.sin(t), 28800 * math.cos(t), 0)
|
||||
if ticks > 1 or not Map.IsPausedShellmap then
|
||||
local t = (ticks + 45) % (360 * speed) * (math.pi / 180) / speed;
|
||||
Camera.Position = viewportOrigin + WVec.New(19200 * math.sin(t), 28800 * math.cos(t), 0)
|
||||
end
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
|
||||
Reference in New Issue
Block a user