Skip to content

Commit

Permalink
Added various size buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Molanda committed Jul 1, 2021
1 parent fffd701 commit 7d9c179
Show file tree
Hide file tree
Showing 23 changed files with 172 additions and 33 deletions.
9 changes: 9 additions & 0 deletions FlashProxy/FlashProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1116,54 +1116,63 @@ void FlashProxyModule::GuessToolbarVisibility()
}

case 88: // Hidden SocialGame
case 99:
{
visibilityMask = 0;
break;
}

case 112: // MenuBar SocialGame MessageBar
case 123:
{
visibilityMask = (UINT32)Identity::MessageBar;
break;
}

case 136: // MenuBar ShortcutBar SocialGame MessageBar
case 147:
{
visibilityMask = (UINT32)Identity::ShortcutBar | (UINT32)Identity::MessageBar;
break;
}

case 146: // MenuBar FunFinder SocialGame MessageBar
case 157:
{
visibilityMask = (UINT32)Identity::FunFinder | (UINT32)Identity::MessageBar;
break;
}

case 134: // MenuBar EmotionsBar SocialGame MessageBar
case 145:
{
visibilityMask = (UINT32)Identity::EmotionsBar | (UINT32)Identity::MessageBar;
break;
}

case 170: // MenuBar ShortcutBar FunFinder SocialGame MessageBar
case 181:
{
visibilityMask = (UINT32)Identity::ShortcutBar | (UINT32)Identity::FunFinder | (UINT32)Identity::MessageBar;
break;
}

case 158: // MenuBar ShortcutBar EmotionsBar SocialGame MessageBar
case 169:
{
visibilityMask = (UINT32)Identity::ShortcutBar | (UINT32)Identity::EmotionsBar | (UINT32)Identity::MessageBar;
break;
}

case 168: // MenuBar FunFinder EmotionsBar SocialGame MessageBar
case 179:
{
visibilityMask = (UINT32)Identity::FunFinder | (UINT32)Identity::EmotionsBar | (UINT32)Identity::MessageBar;
break;
}

case 192: // MenuBar ShortcutBar FunFinder EmotionsBar SocialGame MessageBar
case 203:
{
visibilityMask = (UINT32)Identity::ShortcutBar | (UINT32)Identity::FunFinder | (UINT32)Identity::EmotionsBar | (UINT32)Identity::MessageBar;
break;
Expand Down
2 changes: 1 addition & 1 deletion Resources/changeme/changeme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@ body {
.footer .button[data-enabled="0"]:active {
pointer-events:none;
color:#7dbbca;
text-shadow:1px 1px 1px #fff;
text-shadow:1px 1px 0px #fff;
}

.footer .button.medium {
Expand Down
2 changes: 2 additions & 0 deletions Resources/sg/ak_cracked_hud.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
<title>Cracked</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="hud.css">
<link rel="stylesheet" type="text/css" href="hud_cracked.css">
<script src="../js/jquery-3.5.1.min.js"></script>
<script src="../js/framework.js"></script>
<script src="hud.js"></script>
<script src="hud_cracked.js"></script>
</head>
<body>
<div class="hud">
Expand Down
2 changes: 2 additions & 0 deletions Resources/sg/ak_gin_hud.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
<title>Gin</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="hud.css">
<link rel="stylesheet" type="text/css" href="hud_gin.css">
<script src="../js/jquery-3.5.1.min.js"></script>
<script src="../js/framework.js"></script>
<script src="hud.js"></script>
<script src="hud_gin.js"></script>
</head>
<body>
<div class="hud">
Expand Down
2 changes: 2 additions & 0 deletions Resources/sg/ak_hearts_hud.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
<title>Hearts</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="hud.css">
<link rel="stylesheet" type="text/css" href="hud_hearts.css">
<script src="../js/jquery-3.5.1.min.js"></script>
<script src="../js/framework.js"></script>
<script src="hud.js"></script>
<script src="hud_hearts.js"></script>
</head>
<body>
<div class="hud">
Expand Down
2 changes: 2 additions & 0 deletions Resources/sg/ak_motumotu_hud.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
<title>Motu Motu</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="hud.css">
<link rel="stylesheet" type="text/css" href="hud_motumotu.css">
<script src="../js/jquery-3.5.1.min.js"></script>
<script src="../js/framework.js"></script>
<script src="hud.js"></script>
<script src="hud_motumotu.js"></script>
</head>
<body>
<div class="hud">
Expand Down
2 changes: 2 additions & 0 deletions Resources/sg/ak_spades_hud.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
<title>Spades</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="hud.css">
<link rel="stylesheet" type="text/css" href="hud_spades.css">
<script src="../js/jquery-3.5.1.min.js"></script>
<script src="../js/framework.js"></script>
<script src="hud.js"></script>
<script src="hud_spades.js"></script>
</head>
<body>
<div class="hud">
Expand Down
2 changes: 2 additions & 0 deletions Resources/sg/ak_texasholdem_hud.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
<title>Habanero Holdem</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="hud.css">
<link rel="stylesheet" type="text/css" href="hud_holdem.css">
<script src="../js/jquery-3.5.1.min.js"></script>
<script src="../js/framework.js"></script>
<script src="hud.js"></script>
<script src="hud_holdem.js"></script>
</head>
<body>
<div class="hud">
Expand Down
171 changes: 143 additions & 28 deletions Resources/sg/hud.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ body {
right:0px;
height:100%;
background-image:var(--image);
background-size:100% 100%;
content:' ';
}

Expand All @@ -42,6 +43,142 @@ body {
opacity:0.75;
}

.button.small {
display:inline-block;
width:14px;
height:13px;
border:1px solid #000;
border-radius:3px;
background-image:url(hud.png);
background-position:0px 0px;
}

.button.small:hover {
background-position-y:-13px;
}

.button.small:hover:active {
background-position-y:-26px;
}

.button.small[data-enabled="0"],
.button.small[data-enabled="0"]:hover,
.button.small[data-enabled="0"]:active {
background-position-y:-39px;
pointer-events:none;
}

.button.short {
display:inline-block;
width:19px;
height:14px;
padding:1px;
border:1px solid #000;
border-radius:4px;
background-image:url(hud.png);
background-position:0px -52px;
vertical-align:top;
text-align:center;
line-height:14px;
font-size:11px;
color:#fff;
}

.button.short:hover {
background-position-y:-68px;
text-shadow:1px 1px 1px #0006;
}

.button.short:hover:active {
background-position-y:-84px;
text-shadow:0px 0px 2px #0006;
padding:2px 0px 0px 2px;
}

.button.short[data-enabled="0"],
.button.short[data-enabled="0"]:hover,
.button.short[data-enabled="0"]:active {
background-position-y:-100px;
pointer-events:none;
padding:1px;
color:rgba(0, 0, 0, 0.5);
text-shadow:1px 1px 0px rgba(255, 255, 255, 0.4);
}

.button.medium {
display:inline-block;
width:48px;
height:14px;
padding:1px;
border:1px solid #000;
border-radius:6px;
background-image:url(hud.png);
background-position:-21px -52px;
vertical-align:top;
text-align:center;
line-height:14px;
font-size:11px;
color:#fff;
}

.button.medium:hover {
background-position-y:-68px;
text-shadow:1px 1px 1px #0006;
}

.button.medium:hover:active {
background-position-y:-84px;
text-shadow:0px 0px 2px #0006;
padding:2px 0px 0px 2px;
}

.button.medium[data-enabled="0"],
.button.medium[data-enabled="0"]:hover,
.button.medium[data-enabled="0"]:active {
background-position-y:-100px;
pointer-events:none;
padding:1px;
color:rgba(0, 0, 0, 0.5);
text-shadow:1px 1px 0px rgba(255, 255, 255, 0.4);
}

.button.large {
display:inline-block;
width:62px;
height:18px;
padding:1px;
border:1px solid #000;
border-radius:8px;
background-image:url(hud.png);
background-position:0px -116px;
vertical-align:top;
text-align:center;
line-height:18px;
font-size:11px;
color:#fff;
}

.button.large:hover {
background-position-y:-136px;
text-shadow:1px 1px 1px #0006;
}

.button.large:hover:active {
background-position-y:-156px;
text-shadow:0px 0px 2px #0006;
padding:2px 0px 0px 2px;
}

.button.large[data-enabled="0"],
.button.large[data-enabled="0"]:hover,
.button.large[data-enabled="0"]:active {
background-position-y:-176px;
pointer-events:none;
padding:1px;
color:rgba(0, 0, 0, 0.5);
text-shadow:1px 1px 0px rgba(255, 255, 255, 0.4);
}

.left {
position:relative;
width:206px;
Expand Down Expand Up @@ -102,7 +239,7 @@ body {

.left .panels {
width:205px;
height:64px;
height:calc(100% - 24px);
border-right:1px solid rgba(0, 0, 0, 0.5);
}

Expand Down Expand Up @@ -137,44 +274,22 @@ body {
height:15px;
}

.right .buttons .button {
display:inline-block;
.right .button.small {
margin-left:1px;
width:14px;
height:13px;
border:1px solid #000;
border-radius:3px;
background-image:url(hud.png);
background-position-y:0px;
}

.right .buttons .button:hover {
background-position-y:-13px;
}

.right .buttons .button:hover:active {
background-position-y:-26px;
}

.right .buttons .button[data-enabled="0"],
.right .buttons .button[data-enabled="0"]:hover,
.right .buttons .button[data-enabled="0"]:active {
background-position-y:-39px;
pointer-events:none;
}

.right .buttons .button[data-id="close"] {
.right .button.small[data-id="close"] {
background-position-x:-14px;
}

.right .buttons .button[data-id="help"] {
.right .button.small[data-id="help"] {
background-position-x:-28px;
}

.right .buttons .button[data-id="drag"] {
.right .button.small[data-id="drag"] {
background-position-x:-42px;
}

.right .buttons .button[data-id="alpha"] {
.right .button.small[data-id="alpha"] {
background-position-x:-56px;
}
8 changes: 4 additions & 4 deletions Resources/sg/hud.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ There.init({

onReady: function() {
There.fsCommand('setStageWidthHeight', {
width: 800,
height: 89,
width: $('.hud').outerWidth(),
height: $('.hud').outerHeight(),
});

There.fsCommand('setWidthHeight', {
width: 800,
height: 89,
width: $('.hud').outerWidth(),
height: $('.hud').outerHeight(),
});

There.fsCommand('setTextureBitDepth', {
Expand Down
Binary file modified Resources/sg/hud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added Resources/sg/hud_cracked.css
Empty file.
Empty file added Resources/sg/hud_cracked.js
Empty file.
Empty file added Resources/sg/hud_gin.css
Empty file.
Empty file added Resources/sg/hud_gin.js
Empty file.
Empty file added Resources/sg/hud_hearts.css
Empty file.
Empty file added Resources/sg/hud_hearts.js
Empty file.
3 changes: 3 additions & 0 deletions Resources/sg/hud_holdem.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.hud {
height:99px;
}
Empty file added Resources/sg/hud_holdem.js
Empty file.
Empty file added Resources/sg/hud_motumotu.css
Empty file.
Empty file added Resources/sg/hud_motumotu.js
Empty file.
Empty file added Resources/sg/hud_spades.css
Empty file.
Empty file added Resources/sg/hud_spades.js
Empty file.

0 comments on commit 7d9c179

Please sign in to comment.