Skip to content

Commit

Permalink
resize judgments to like, not be like, square, and like, super ugly
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jun 1, 2019
1 parent 615d748 commit 35c7505
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Themes/Til Death/BGAnimations/ScreenAssetSettings underlay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ local assetTable = {}

local frameWidth = SCREEN_WIDTH - 20
local frameHeight = SCREEN_HEIGHT - 40
local assetWidth = 50
local squareWidth = 50
local judgmentWidth = 125
local assetWidth = squareWidth
local assetHeight = 50
local assetXSpacing = (frameWidth + assetWidth/2) / (maxColumns + 1)
local assetYSpacing = (frameHeight - 20) / (maxRows + 1)
Expand Down Expand Up @@ -304,11 +306,18 @@ local function assetBox(i)
curIndex = i
end

if curType == 3 then
assetWidth = judgmentWidth
else
assetWidth = squareWidth
end

-- Load the asset image
self:GetChild("Image"):playcommand("LoadAsset")
self:GetChild("Sound"):playcommand("LoadAsset")
self:GetChild("SelectedAssetIndicator"):playcommand("Set")
if i == curIndex then
self:GetChild("Image"):finishtweening()
self:GetChild("Image"):zoomto(assetHeight+8,assetWidth+8)
self:GetChild("Border"):zoomto(assetHeight+12,assetWidth+12)
self:GetChild("Border"):diffuse(getMainColor("highlight")):diffusealpha(0.8)
Expand All @@ -333,6 +342,9 @@ local function assetBox(i)
self:tween(0.5,"TweenType_Bezier",{0,0,0,0.5,0,1,1,1})
self:diffusealpha(0)
end
if curType == 3 then
MESSAGEMAN:Broadcast("CursorMoved",{index = findPickedIndexForCurPage()})
end
end
}

Expand All @@ -343,6 +355,7 @@ local function assetBox(i)
self:diffuse(color("#AAAAAA")):diffusealpha(0)
end,
SetCommand = function(self)
self:zoomto(assetWidth+14, assetHeight+14)
self:finishtweening()
if selectedPath == name then
self:tween(0.5,"TweenType_Bezier",{0,0,0,0.5,0,1,1,1})
Expand Down

0 comments on commit 35c7505

Please sign in to comment.