git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@164 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-04 17:28:33 +00:00
parent 4452531d90
commit f57a402e6e
6 changed files with 246 additions and 23 deletions

View File

@@ -22,7 +22,9 @@ static void draw(MwWidget handle) {
rt = r;
rt.height = rt.width;
MwDrawTriangle(handle, &r, base, 0, MwNORTH);
MwDrawTriangle(handle, &rt, base, 0, MwNORTH);
rt.y = r.y + r.height - rt.height;
MwDrawTriangle(handle, &rt, base, 0, MwSOUTH);
MwLLFreeColor(dark);
MwLLFreeColor(base);

View File

@@ -67,20 +67,13 @@ static void draw(MwWidget handle) {
MwDrawText(handle, &p, menu->sub[i]->name, 1, text);
if(arrlen(menu->sub[i]->sub) > 0) {
MwPoint pl[3];
MwRect tr;
p.x = 5 + tw + 10;
tr.x = p.x + tw / 2 + 5;
tr.y = p.y - th / 2 + 2;
tr.width = tr.height = 11;
pl[0].x = p.x - 5;
pl[0].y = p.y - th / 2;
pl[1].x = p.x - 5;
pl[1].y = p.y + th / 2;
pl[2].x = p.x + 5;
pl[2].y = p.y;
MwLLPolygon(handle->lowlevel, pl, 3, text);
MwDrawTriangle(handle, &tr, base, menu->sub[i]->wsub != NULL ? 1 : 0, MwEAST);
}
p.y += th / 2 + 3;