Jump to content

Recommended Posts

hello! i've recently updated my mod, Configurable Main Menu, and ran into a reoccurring issue with the three remaining menu animations i was unable to restore properly.

Some of the SUPER old banners relied on the menu's default background color being BLACK. It is currently OFF-WHITE/YELLOW. this makes them look SUPER UGLY and BAD.

image.png.e4745af0f222bf511d8764f4f425db49.png

Spoiler

This is what it's supposed to look like.

image.png.f067a03535f56271f2b598b2100d9eb6.png

I need the background to be black. Desperately. I would like to avoid adding my own assets to make this happen if possible.

the code for YOTV can be viewed in widgets/redux/templates.lua, and here's my code for winona's menu, if relevant:

Spoiler
local function NoSidebar() --removes sidebar, required for darkbottom
	TheGlobalInstance:DoTaskInTime(0.1, function()
		TheFrontEnd:GetActiveScreen().sidebar:Hide() 
	end)
end
local function DarkBottom(self) --adds bottom bar
	self.fixed_root = self:AddChild(Widget("root"))
	self.fixed_root:SetVAnchor(ANCHOR_MIDDLE)
	self.fixed_root:SetHAnchor(ANCHOR_MIDDLE)
	self.fixed_root:SetScaleMode(SCALEMODE_PROPORTIONAL)
	local bg = self.fixed_root:AddChild(Image("images/bg_redux_dark_bottom_solid.xml", "dark_bottom_solid.tex"))
	bg:SetScale(.669)
	bg:SetPosition(0, -160)
	bg:SetClickable(false)
	
	NoSidebar(self)
end

local function MakeWinonaBanner(self, banner_root, anim) --needs black bg
	local banner_height = 350
	banner_root:SetPosition(0, RESOLUTION_Y / 2 - banner_height / 2 + 1 )
	DarkBottom(self)

	anim:GetAnimState():SetBuild("dst_menu_winona")
	anim:GetAnimState():SetBank("dst_menu_winona")
	anim:GetAnimState():PlayAnimation("loop", true)
	anim:SetScale(0.475)
	anim:SetPosition(327, -17)
end

 

basically everything but the DarkBottom and NoSidebar functions were copied from when the menu was active, so i know it's displaying authentically

 

Edited by crushcircuit

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...