Resize logo to fit existing GUI

This commit is contained in:
Vortrex
2022-05-02 15:26:14 -05:00
parent e3b9072e9d
commit 52274965a3
4 changed files with 5 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ var app = {};
let mainFont = "Roboto"; // "Arial" let mainFont = "Roboto"; // "Arial"
//let mainLogoPath = (typeof gta == "undefined") ? "files/images/mafiac-logo.png" : "files/images/gtac-logo.png"; //let mainLogoPath = (typeof gta == "undefined") ? "files/images/mafiac-logo.png" : "files/images/gtac-logo.png";
let mainLogoPath = "files/images/server-logo.png"; let mainLogoPath = "files/images/asshat-logo.png";
let primaryColour = [200, 200, 200]; let primaryColour = [200, 200, 200];
let secondaryColour = [16, 16, 16]; let secondaryColour = [16, 16, 16];

View File

@@ -23,7 +23,7 @@ let login = {
let loginHTML = let loginHTML =
`<html> `<html>
<head> <head>
<title>Connected RP: Login</title> <title>Asshat Gaming Roleplay: Login</title>
<style type="text/css" rel="stylesheet"> <style type="text/css" rel="stylesheet">
.input-box .input-box
{ {
@@ -64,7 +64,7 @@ function initLoginGUI() {
login.window.titleBarIconSize = toVector2(0,0); login.window.titleBarIconSize = toVector2(0,0);
login.window.titleBarHeight = 0; login.window.titleBarHeight = 0;
login.logoImage = login.window.image(5, 20, 290, 100, mainLogoPath, { login.logoImage = login.window.image(100, 20, 100, 100, mainLogoPath, {
focused: { focused: {
borderColour: toColour(0, 0, 0, 0), borderColour: toColour(0, 0, 0, 0),
}, },

View File

@@ -40,7 +40,7 @@ function initNewCharacterGUI() {
newCharacter.window.titleBarIconSize = toVector2(0,0); newCharacter.window.titleBarIconSize = toVector2(0,0);
newCharacter.window.titleBarHeight = 0; newCharacter.window.titleBarHeight = 0;
newCharacter.mainLogoImage = newCharacter.window.image(5, 20, 290, 80, mainLogoPath, { newCharacter.mainLogoImage = newCharacter.window.image(80, 20, 80, 80, mainLogoPath, {
focused: { focused: {
borderColour: toColour(0, 0, 0, 0), borderColour: toColour(0, 0, 0, 0),
}, },

View File

@@ -40,7 +40,7 @@ function initRegisterGUI() {
register.window.titleBarIconSize = toVector2(0,0); register.window.titleBarIconSize = toVector2(0,0);
register.window.titleBarHeight = 0; register.window.titleBarHeight = 0;
register.window.image(5, 20, 290, 100, mainLogoPath, { register.window.image(100, 20, 100, 100, mainLogoPath, {
focused: { focused: {
borderColour: toColour(0, 0, 0, 0), borderColour: toColour(0, 0, 0, 0),
}, },