From 81a0b5dc9d41d1b111eb4e0308c086660cc20c77 Mon Sep 17 00:00:00 2001 From: MinaciousGrace Date: Fri, 1 Sep 2017 17:55:41 -0400 Subject: [PATCH] fix widescreen defaults after the implementation of movable gameplay elements this is done by being really lame and adding offsets when using widescreen also i hate all of you --- .../WifeJudgmentSpotting.lua | 21 +++++++++++++++++++ .../Graphics/Player judgment/default.lua | 7 +++++++ 2 files changed, 28 insertions(+) diff --git a/Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua b/Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua index cfd3ecf8a1..5bd4cd8504 100644 --- a/Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua +++ b/Themes/Til Death/BGAnimations/ScreenGameplay overlay/WifeJudgmentSpotting.lua @@ -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 @@ -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 @@ -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 ) @@ -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, diff --git a/Themes/Til Death/Graphics/Player judgment/default.lua b/Themes/Til Death/Graphics/Player judgment/default.lua index 9042e0679b..966d5827df 100644 --- a/Themes/Til Death/Graphics/Player judgment/default.lua +++ b/Themes/Til Death/Graphics/Player judgment/default.lua @@ -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 = {