View Thread
Point Defense Systems » Point Defense Systems Remastered Project » PDS General Discussions
 Print Thread
Unitcap display
Glacialis
There was a modification, quite simple as I recall, that would allow the unitcap display ('i' key) to take up the entire screen. Anyone remember what file and change? Searched old site and Relicnews forums to no avail.
 
Glacialis
Data/ui/newui/UnitCapInfoPopup.lua


MAXHEIGHT value is what was changed. Forgot who gave me that tip, think it was on Relicnews.

Here's the whole file. A very easy fix!


-- Displays detailed information about unit caps when the user
--  mouses over the units menu

--UnitCapInfoPopupWidth = 225
UnitCapInfoPopupWidth = 200
MAXHEIGHT = 625

UnitCapInfoPopup= {

maxColor = {255,0,0,255}, -- color for max pop reached
availColor = {0,255,0,255},-- color for pop available

size = {2, 71, 100, 200},

RootElementSettings = {
autosize = 1,
},

onShow = "UI_HideScreen('BuildQueueMenu')",

stylesheet = "HW2StyleSheet",

-- Flags
pixelUVCoords = 1, -- Enter pixel coords for texture coords

clickThrough = 1,

;

-- Tab spacer frame to clone
{
type = "Frame",
name = "frmTabSpacer",
size = {10, 15},
giveParentMouseInput = 1,
},

-- Title to clone
{
type = "TextLabel",
name = "lblNameToClone",
position = {4,0},
size = {UnitCapInfoPopupWidth-16, 15},
Text = {
textStyle = "IGHeading2",
},
giveParentMouseInput = 1,
dropShadow = 1,
visible = 0,
},

-- Unit cap item to clone
{
type = "Frame",
name = "frmItemToClone",
autosize = 1,
giveParentMouseInput = 1,
visible = 0,
;

{
type = "Frame",
name = "frmName",
position = {4,0},
size = {UnitCapInfoPopupWidth - 50, 15},
autoarrange = 1,
autoarrangeWidth = 300, -- this is needed b/c of spacers
;
},


{
type = "TextLabel",
name = "lblUnitCap",
position = {UnitCapInfoPopupWidth-46, 0},
size = {45, 15},
Text = {
font = "ChatFont",
color = {255,255,255,255},
hAlign = "Right",
vAlign = "Middle",
text = "%d \/ %d",
offset = {-6,0},
},
giveParentMouseInput = 1,
dropShadow = 1,
},
},

{
type = "Frame",
--position = {2,17},
autosize = 1,
--backgroundColor = "IGColorBackground1",
giveParentMouseInput = 1,
autoarrange = 1,
autoarrangeWidth = UnitCapInfoPopupWidth,
maxSize = {UnitCapInfoPopupWidth, MAXHEIGHT},
;

-- Frame to hold all unit caps
{
type = "Frame",
name = "frmItems",
autosize = 1,
autoarrange = 1,
autoarrangeWidth = UnitCapInfoPopupWidth,
giveParentMouseInput = 1,
},

-- Title frame
--{
--type = "Frame",
--size = {UnitCapInfoPopupWidth, 18},
--giveParentMouseInput = 1,
--;
--{
--type = "TextLabel",
--giveParentMouseInput = 1,
--position = {-2, 0},
--size = {UnitCapInfoPopupWidth + 4, 18},
--borderColor = { 170, 227, 255, 255},
--borderWidth = 2,
--Text = {
--textStyle = "IGHeading2",
--hAlign = "Left",
--offset = { 8, 0},
--color = { 255, 255, 255, 255},
--text = "$5163",
--},
--},
--},
},
}

Edited by Glacialis on 08-10-2005 05:13
 
Jump to Forum