Skip to content

Commit

Permalink
Fixed #238 (Hopefully)
Browse files Browse the repository at this point in the history
Fixed black bars appearing for item containers that display a "model" instead of an image of the item (namely skinned weapons). This seems to only happen in 1440p resolution and is caused by the bounding box of the item panel not sizing up properly with the space allocated to the item. Most of the tinkering was done with model_wide and model_tall to find that sweet spot.
  • Loading branch information
CriticalFlaw committed Oct 21, 2022
1 parent 21658a0 commit e30abe8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 31 deletions.
6 changes: 3 additions & 3 deletions resource/ui/hudinspectpanel.res
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"wide" "190"
"tall" "100"
"visible" "0"
"bgcolor_override" "16 16 16 230"
"bgcolor_override" "HudBlack"
"paintBackground" "1"
"PaintBackgroundType" "2"
"paintBorder" "0"

"model_ypos" "10"
"model_center_x" "1"
"model_wide" "90"
"model_tall" "60"
"model_wide" "100"
"model_tall" "75"

"text_xpos" "10"
"text_ypos" "10"
Expand Down
54 changes: 26 additions & 28 deletions resource/ui/itemselectionpanel.res
Original file line number Diff line number Diff line change
Expand Up @@ -25,44 +25,42 @@

"modelpanels_selection_kv"
{
"wide" "94"
"tall" "70"
"model_xpos" "2"
"model_wide" "90"
"model_tall" "50"
"text_ypos" "0"
"text_forcesize" "2"
"text_center" "0"
"text_yoffset" "2"
"inset_eq_y" "55"
"deferred_description" "1"
"deferred_icon" "1"
"wide" "95"
"tall" "70"

"model_center_x" "1"
"model_ypos" "5"
"model_tall" "55"
"model_wide" "82"
"text_ypos" "0"
"text_forcesize" "2"
"text_center" "0"
"text_yoffset" "2"
"name_only" "1"
}

"modelpanels_kv"
{
"ControlName" "CItemModelPanel"
"xpos" "c-70"
"ypos" "270"
"wide" "54"
"tall" "42"
"visible" "0"
"xpos" "c-70"
"ypos" "270"
"wide" "95"
"tall" "70"
"visible" "0"
"bgcolor_override" "Transparent"
"noitem_textcolor" "TextColor"
"PaintBackgroundType" "2"
"paintborder" "1"

"model_center_x" "1"
"model_center_y" "1"
"model_xpos" "2"
"model_ypos" "5"
"model_wide" "50"
"model_tall" "35"
"text_ypos" "60"
"text_center" "1"
"name_only" "1"
"inset_eq_x" "4"
"inset_eq_y" "2"
"deferred_description" "1"
"model_ypos" "5"
"model_tall" "55"
"model_wide" "82"
"text_ypos" "0"
"text_forcesize" "2"
"text_center" "0"
"text_yoffset" "2"
"name_only" "1"

"itemmodelpanel"
{
Expand Down

0 comments on commit e30abe8

Please sign in to comment.