Added raylib+rmlui template
This commit is contained in:
39
assets/main.rcss
Normal file
39
assets/main.rcss
Normal file
@@ -0,0 +1,39 @@
|
||||
body {
|
||||
font-family: rmlui-debugger-font;
|
||||
font-size: 16px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#panel {
|
||||
position: absolute;
|
||||
top: 40px;
|
||||
left: 40px;
|
||||
width: 300px;
|
||||
padding: 20px;
|
||||
background-color: rgba(20, 20, 20, 220);
|
||||
border: 2px #888;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 24px;
|
||||
color: #ffd35c;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
#start-btn {
|
||||
display: block;
|
||||
width: 100px;
|
||||
padding: 8px;
|
||||
text-align: center;
|
||||
background-color: #3a6ea5;
|
||||
color: white;
|
||||
border: 1px #5a8ec5;
|
||||
}
|
||||
|
||||
#start-btn:hover {
|
||||
background-color: #4a7eb5;
|
||||
}
|
||||
13
assets/main.rml
Normal file
13
assets/main.rml
Normal file
@@ -0,0 +1,13 @@
|
||||
<rml>
|
||||
<head>
|
||||
<title>gamejam</title>
|
||||
<link type="text/rcss" href="main.rcss"/>
|
||||
</head>
|
||||
<body>
|
||||
<div id="panel">
|
||||
<h1>gamejam</h1>
|
||||
<p>RmlUi + raylib scaffold is alive.</p>
|
||||
<button id="start-btn">Start</button>
|
||||
</div>
|
||||
</body>
|
||||
</rml>
|
||||
Reference in New Issue
Block a user