Skip to content

Commit

Permalink
fix widescreen defaults after the implementation of movable gameplay …
Browse files Browse the repository at this point in the history
…elements

this is done by being really lame and adding offsets when using widescreen

also i hate all of you
  • Loading branch information
MinaciousGrace committed Sep 1, 2017
1 parent 894022c commit 81a0b5d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ local screen -- the screen after it is loaded
local messageBox -- the message box from when you try to move something
local judgeCounter -- pa counter actor frame

local WIDESCREENWHY = -5
local WIDESCREENWHX = -5

--error bar things
local errorBarX = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).GameplayXYCoordinates.ErrorBarX
local errorBarY = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).GameplayXYCoordinates.ErrorBarY
Expand All @@ -84,10 +87,21 @@ local targetTrackerX = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).Gamep
local targetTrackerY = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).GameplayXYCoordinates.TargetTrackerY
local targetTrackerZoom = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).GameplaySizes.TargetTrackerZoom

if IsUsingWideScreen( ) then
targetTrackerY = targetTrackerY + WIDESCREENWHY
targetTrackerX = targetTrackerX - WIDESCREENWHX
end

--mini progress bar things
local miniProgressBarX = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).GameplayXYCoordinates.MiniProgressBarX
local miniProgressBarY = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).GameplayXYCoordinates.MiniProgressBarY

-- CUZ WIDESCREEN DEFAULTS SCREAAAAAAAAAAAAAAAAAAAAAAAAAM -mina
if IsUsingWideScreen( ) then
miniProgressBarY = miniProgressBarY + WIDESCREENWHY
miniProgressBarX = miniProgressBarX - WIDESCREENWHX
end

--full progress bar things
local fullProgressBarX = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).GameplayXYCoordinates.FullProgressBarX
local fullProgressBarY = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).GameplayXYCoordinates.FullProgressBarY
Expand Down Expand Up @@ -1083,6 +1097,12 @@ t[#t+1] = Def.ActorFrame{
local x = 0
local y = 60

-- CUZ WIDESCREEN DEFAULTS SCREAAAAAAAAAAAAAAAAAAAAAAAAAM -mina
if IsUsingWideScreen( ) then
y = y - WIDESCREENWHY
x = x + WIDESCREENWHX
end

--This just initializes the initial point or not idk not needed to mess with this any more
function ComboTransformCommand( self, params )
self:x( x )
Expand Down Expand Up @@ -1349,6 +1369,7 @@ t[#t+1] = Def.ActorFrame{
UpdateCommand=function(self)
local x = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).GameplayXYCoordinates.ComboX
local y = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).GameplayXYCoordinates.ComboY

local text= {
"Combo Position:",
"X: " .. x,
Expand Down
7 changes: 7 additions & 0 deletions Themes/Til Death/Graphics/Player judgment/default.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ local changed = false
local c
local x = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).GameplayXYCoordinates.JudgeX
local y = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).GameplayXYCoordinates.JudgeY

-- CUZ WIDESCREEN DEFAULTS SCREAAAAAAAAAAAAAAAAAAAAAAAAAM -mina
if IsUsingWideScreen( ) then
y = y - 5
x = x + 5
end

local zoom = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).GameplaySizes.JudgeZoom

local JudgeCmds = {
Expand Down

0 comments on commit 81a0b5d

Please sign in to comment.