Small launcher progress

This commit is contained in:
Maurice Heumann 2023-02-20 19:37:30 +01:00
parent 1b145a8a96
commit 34dce5eea6
2 changed files with 22 additions and 2 deletions

View File

@ -74,7 +74,7 @@
.content { .content {
width: 100%; width: 100%;
text-align: center; text-align: center;
padding-top: 100px; padding-top: 30px;
} }
div.button { div.button {
@ -89,6 +89,8 @@
padding: 0.5rem; padding: 0.5rem;
border-radius: 0.5rem; border-radius: 0.5rem;
transition: all 0.1s linear; transition: all 0.1s linear;
font-size: 1rem;
font-weight: normal;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
} }
@ -97,6 +99,16 @@
background-color: rgb(48, 45, 44); background-color: rgb(48, 45, 44);
border: 1px solid #4a4745; border: 1px solid #4a4745;
} }
h1,
h1 * {
font-size: 3rem;
font-weight: bold;
color: white;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}
</style> </style>
</head> </head>
@ -104,6 +116,14 @@
<div class="background-container"></div> <div class="background-container"></div>
<div class="content"> <div class="content">
<h1>
<span style="color: rgba(244, 240, 235, 0.86)">Call of Duty:</span>
<span style="color: #f97316">B</span
><span style="color: #ec511c">O</span
><span style="color: #e53f21">I</span
><span style="color: #e23623">I</span
><span style="color: #dc2626">I</span>
</h1>
<div class="button" onclick="window.external.runGame()">Play</div> <div class="button" onclick="window.external.runGame()">Play</div>
<div class="button" onclick="window.external.openUrl('https://boiii.re')"> <div class="button" onclick="window.external.openUrl('https://boiii.re')">
About About

View File

@ -12,7 +12,7 @@ namespace launcher
bool run() bool run()
{ {
bool run_game = false; bool run_game = false;
html_window window("BOIII", 550, 380); html_window window("BOIII", 550, 320);
window.get_html_frame()->register_callback( window.get_html_frame()->register_callback(
"openUrl", [](const std::vector<html_argument>& params) -> CComVariant "openUrl", [](const std::vector<html_argument>& params) -> CComVariant