Skip to content

Commit

Permalink
rebirth add judge counter zoom to customize gameplay
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Feb 6, 2022
1 parent ba89bba commit 4089658
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ local t = Def.ActorFrame {
registerActorToCustomizeGameplayUI({
actor = self,
coordInc = {5,1},
zoomInc = {0.1,0.05},
})
end,
BeginCommand = function(self)
Expand All @@ -37,6 +38,7 @@ local t = Def.ActorFrame {
end,
SetUpMovableValuesMessageCommand = function(self)
self:xy(MovableValues.JudgeCounterX, MovableValues.JudgeCounterY)
self:zoomto(MovableValues.JudgeCounterWidth, MovableValues.JudgeCounterHeight)
end,
SpottedOffsetCommand = function(self, params)
if params == nil then return end
Expand Down
2 changes: 2 additions & 0 deletions Themes/Rebirth/Scripts/01 player_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ local defaultGameplaySizes = {
TargetTrackerZoom = 0.4,
FullProgressBarWidth = 1.0,
FullProgressBarHeight = 1.0,
JudgeCounterHeight = 1.0,
JudgeCounterWidth = 1.0,
DisplayPercentZoom = 1,
DisplayMeanZoom = 1,
NPSDisplayZoom = 0.5,
Expand Down
4 changes: 3 additions & 1 deletion Themes/Rebirth/Scripts/02 CustomizeGameplay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ local function loadValuesTable()
MovableValues.NoteFieldSpacing = playerConfig:get_data().GameplaySizes[keymode].NoteFieldSpacing
MovableValues.JudgeCounterX = playerConfig:get_data().GameplayXYCoordinates[keymode].JudgeCounterX
MovableValues.JudgeCounterY = playerConfig:get_data().GameplayXYCoordinates[keymode].JudgeCounterY
MovableValues.JudgeCounterHeight = playerConfig:get_data().GameplaySizes[keymode].JudgeCounterHeight
MovableValues.JudgeCounterWidth = playerConfig:get_data().GameplaySizes[keymode].JudgeCounterWidth
MovableValues.ReplayButtonsX = playerConfig:get_data().GameplayXYCoordinates[keymode].ReplayButtonsX
MovableValues.ReplayButtonsY = playerConfig:get_data().GameplayXYCoordinates[keymode].ReplayButtonsY
MovableValues.ReplayButtonsSpacing = playerConfig:get_data().GameplaySizes[keymode].ReplayButtonsSpacing
Expand Down Expand Up @@ -111,7 +113,7 @@ local selectedElementActor = nil
{
actor = (an actorframe),
coordInc = {big, small}, increment size for coordinates
zoomInc = {big, small}, increment size for zooming (zoom or size bpth work here)
zoomInc = {big, small}, increment size for zooming (zoom or size both work here)
rotationInc = {big, small}, increment size for rotation
spacingInc = {big, small}, increment size for spacing
}
Expand Down

0 comments on commit 4089658

Please sign in to comment.