cirleText()
{
self.menu = [];
self.menu["hud"] = [];
self.menu["hud"]["options"] = [];
level.center = 0; //for text
level.radius = 300; //for shader
input = "test";
self.menu[input] = [];
self.menu[input]["options"] = [];
self.menu[input]["options"][0] = "Option 1";
self.menu[input]["options"][1] = "Option 2";
self.menu[input]["options"][2] = "Option 3";
self.menu[input]["options"][3] = "Option 4";
self.menu[input]["options"][4] = "Option 5";
self.menu[input]["options"][5] = "Option 6";
for(i = 0; i < self.menu[input]["options"].size; i++)
{
opt_angle = (360 / self.menu[input]["options"].size) * (i + 1); //so that the first angle isn't 0
opt_sin = level.center + Sin(opt_angle); //get the y
opt_cos = level.center + Cos(opt_angle); //get the x
opt_x = (opt_cos / 2) + opt_cos; //since we don't want the first option to start at 0°, we'll just rotate the whole thing
opt_y = (opt_sin / 2) + opt_sin; //since we don't want the first option to start at 0°, we'll just rotate the whole thing
self.menu["hud"]["options"][i] = self drawText("hudbig", 1.4, self.menu[input]["options"][i], opt_x, opt_y, 420, true, 1, (1, 1, 1), 0, (1, 1, 1));
}
}
drawText(font, fontScale, text, x, y, sort, hideWhenInMenu, alpha, color, glowAlpha, glowColor)
{
textElem = createFontString(font, fontScale);
textElem setText(text);
textElem.x = x;
textElem.y = y;
textElem.sort = sort;
textElem.hideWhenInMenu = hideWhenInMenu;
textElem.alpha = alpha;
textElem.color = color;
textElem.glowAlpha = glowAlpha;
textElem.glowColor = glowColor;
return textElem;
}
cirleText()
{
self.menu = [];
self.menu["hud"] = [];
self.menu["hud"]["options"] = [];
level.center = 0; //for text
level.radius = 300; //for shader
input = "test";
self.menu[input] = [];
self.menu[input]["options"] = [];
self.menu[input]["options"][0] = "Option 1";
self.menu[input]["options"][1] = "Option 2";
self.menu[input]["options"][2] = "Option 3";
self.menu[input]["options"][3] = "Option 4";
self.menu[input]["options"][4] = "Option 5";
self.menu[input]["options"][5] = "Option 6";
for(i = 0; i < self.menu[input]["options"].size; i++)
{
opt_angle = (360 / self.menu[input]["options"].size) * (i + 1); //so that the first angle isn't 0
opt_sin = level.center + Sin(opt_angle); //get the y
opt_cos = level.center + Cos(opt_angle); //get the x
opt_x = (opt_cos / 2) + opt_cos; //since we don't want the first option to start at 0°, we'll just rotate the whole thing
opt_y = (opt_sin / 2) + opt_sin; //since we don't want the first option to start at 0°, we'll just rotate the whole thing
self.menu["hud"]["options"][i] = self drawText("hudbig", 1.4, self.menu[input]["options"][i], opt_x, opt_y, 420, true, 1, (1, 1, 1), 0, (1, 1, 1));
}
}
drawText(font, fontScale, text, x, y, sort, hideWhenInMenu, alpha, color, glowAlpha, glowColor)
{
textElem = createFontString(font, fontScale);
textElem setText(text);
textElem.x = x;
textElem.y = y;
textElem.sort = sort;
textElem.hideWhenInMenu = hideWhenInMenu;
textElem.alpha = alpha;
textElem.color = color;
textElem.glowAlpha = glowAlpha;
textElem.glowColor = glowColor;
return textElem;
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.