|
|
@ -501,73 +501,73 @@ VkResult color_ui(ClientContext* context) {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
.pos = {146, 2},
|
|
|
|
.pos = {146, 2},
|
|
|
|
.size = {20, 20},
|
|
|
|
.size = {20, 20},
|
|
|
|
.color = {{1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}},
|
|
|
|
.color = {{0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}},
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
.pos = {168, 2},
|
|
|
|
.pos = {168, 2},
|
|
|
|
.size = {20, 20},
|
|
|
|
.size = {20, 20},
|
|
|
|
.color = {{1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}},
|
|
|
|
.color = {{0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}},
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
.pos = {146, 24},
|
|
|
|
.pos = {146, 24},
|
|
|
|
.size = {20, 20},
|
|
|
|
.size = {20, 20},
|
|
|
|
.color = {{1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}},
|
|
|
|
.color = {{0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}},
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
.pos = {168, 24},
|
|
|
|
.pos = {168, 24},
|
|
|
|
.size = {20, 20},
|
|
|
|
.size = {20, 20},
|
|
|
|
.color = {{1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}},
|
|
|
|
.color = {{0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}},
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
.pos = {146, 46},
|
|
|
|
.pos = {146, 46},
|
|
|
|
.size = {20, 20},
|
|
|
|
.size = {20, 20},
|
|
|
|
.color = {{1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}},
|
|
|
|
.color = {{0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}},
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
.pos = {168, 46},
|
|
|
|
.pos = {168, 46},
|
|
|
|
.size = {20, 20},
|
|
|
|
.size = {20, 20},
|
|
|
|
.color = {{1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}},
|
|
|
|
.color = {{0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}},
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
.pos = {146, 68},
|
|
|
|
.pos = {146, 68},
|
|
|
|
.size = {20, 20},
|
|
|
|
.size = {20, 20},
|
|
|
|
.color = {{1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}},
|
|
|
|
.color = {{0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}},
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
.pos = {168, 68},
|
|
|
|
.pos = {168, 68},
|
|
|
|
.size = {20, 20},
|
|
|
|
.size = {20, 20},
|
|
|
|
.color = {{1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}},
|
|
|
|
.color = {{0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}},
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
.pos = {146, 90},
|
|
|
|
.pos = {146, 90},
|
|
|
|
.size = {20, 20},
|
|
|
|
.size = {20, 20},
|
|
|
|
.color = {{1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}},
|
|
|
|
.color = {{0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}},
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
.pos = {168, 90},
|
|
|
|
.pos = {168, 90},
|
|
|
|
.size = {20, 20},
|
|
|
|
.size = {20, 20},
|
|
|
|
.color = {{1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}},
|
|
|
|
.color = {{0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}},
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
.pos = {146, 112},
|
|
|
|
.pos = {146, 112},
|
|
|
|
.size = {20, 20},
|
|
|
|
.size = {20, 20},
|
|
|
|
.color = {{1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}},
|
|
|
|
.color = {{0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}},
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
.pos = {168, 112},
|
|
|
|
.pos = {168, 112},
|
|
|
|
.size = {20, 20},
|
|
|
|
.size = {20, 20},
|
|
|
|
.color = {{1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}},
|
|
|
|
.color = {{0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}, {0, 0, 0, 1}},
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
.events = UI_EVENT_BUTTON,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -594,13 +594,22 @@ VkResult color_ui(ClientContext* context) {
|
|
|
|
data->string[4] = '0';
|
|
|
|
data->string[4] = '0';
|
|
|
|
data->string[5] = '0';
|
|
|
|
data->string[5] = '0';
|
|
|
|
data->string[6] = '0';
|
|
|
|
data->string[6] = '0';
|
|
|
|
data->string[7] = '0';
|
|
|
|
data->string[7] = 'F';
|
|
|
|
data->string[8] = '0';
|
|
|
|
data->string[8] = 'F';
|
|
|
|
data->string[9] = '\0';
|
|
|
|
data->string[9] = '\0';
|
|
|
|
|
|
|
|
|
|
|
|
data->current[0] = 0;
|
|
|
|
data->current[0] = 0;
|
|
|
|
data->current[1] = 0;
|
|
|
|
data->current[1] = 0;
|
|
|
|
data->current[2] = 0;
|
|
|
|
data->current[2] = 0;
|
|
|
|
data->current[3] = 0;
|
|
|
|
data->current[3] = 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(uint32_t i = 0; i < 12; i++) {
|
|
|
|
|
|
|
|
data->saved[i][0] = 0;
|
|
|
|
|
|
|
|
data->saved[i][1] = 0;
|
|
|
|
|
|
|
|
data->saved[i][2] = 0;
|
|
|
|
|
|
|
|
data->saved[i][3] = 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UICallbacks callbacks[] = {
|
|
|
|
UICallbacks callbacks[] = {
|
|
|
|
{
|
|
|
|
{
|
|
|
|