I spent the last few days working on a fun little project. I created a plugin that will convert a ScreenGui to HTML code. There isn’t really much else to say about it, other than it was frustrating at some points to get all the components correct. But I believe I got everything to work properly, though I do want to implement some more stuff in the future.
I’ve decided to start on another little project since this plugin has gotten to a working state.
All feedback is appreciated.
Some screenshots:
Resulting output (minutes the screenshot messages)
Explorer showing the hierarchy for the Test GUI and the resulting HTML/CSS
Index.HTML has proper indentation!
[code]
Test
[/code]
As does styles.CSS:
[code]body {
position: relative;
background-color: black;
}
#body-content {
position: absolute;
left: 50%;
margin-left: -516px;
width: 1032px;
height: 594px;
background: url(‘http://i.imgur.com/64FAZKh.png’) no-repeat center center;
background-size: cover;
}
#container {
background-color: rgba(255, 255, 255, 1.0000);
position: absolute;
top: 46px;
left: 265px;
width: 499px;
height: 499px;
border: 1px solid rgb(27, 42, 53);
display: table;
}
#greeting {
color: rgba(27, 42, 53, 1.0000);
font-family: sans-serif;
font-size: 12px;
text-align: Center;
background-color: rgba(0, 170, 127, 1.0000);
position: absolute;
top: -1px;
left: -1px;
width: 99px;
height: 99px;
border: 1px solid rgb(27, 42, 53);
display: table;
}
#greeting-wrapper {
display: table-cell;
vertical-align: Middle;
}
#submit-button {
cursor: pointer;
color: rgba(255, 170, 0, 1.0000);
font-family: sans-serif;
font-size: 31px;
text-align: Right;
background-color: rgba(170, 0, 0, 1.0000);
position: absolute;
top: 99px;
left: -1px;
width: 99px;
height: 99px;
border: 1px solid rgb(27, 42, 53);
display: table;
}
#submit-button-wrapper {
display: table-cell;
vertical-align: Bottom;
}
#dayz {
background-color: rgba(255, 255, 255, 1.0000);
position: absolute;
top: -1px;
left: 99px;
width: 99px;
height: 99px;
border: 1px solid rgb(27, 42, 53);
display: table;
}
#inputbox {
color: rgba(27, 42, 53, 1.0000);
font-family: sans-serif;
font-size: 12px;
padding:0px;
padding-bottom: 36px;
background-color: rgba(255, 255, 0, 1.0000);
position: absolute;
top: 199px;
left: -1px;
width: 201px;
height: 49px;
border: 1px solid rgb(27, 42, 53);
display: table;
}
#inputbox-wrapper {
display: table-cell;
vertical-align: Top;
}
#doge {
cursor: pointer;
background-color: rgba(255, 255, 255, 1.0000);
position: absolute;
top: 99px;
left: 99px;
width: 99px;
height: 99px;
border: 1px solid rgb(27, 42, 53);
display: table;
}
[/code]
Resulting in …