add MwNhideInput

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@531 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-31 17:40:16 +00:00
parent 1e1f9653ea
commit b1abe76aeb
5 changed files with 13 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ static void draw(MwWidget handle) {
}
static void click(MwWidget handle) {
MwSetInteger(handle, MwNchecked, MwGetInteger(handle, MwNchecked) ? 0 : 1);
if(!MwGetInteger(handle, MwNchecked)) MwSetInteger(handle, MwNchecked, 1);
if(MwGetInteger(handle, MwNchecked) && handle->parent != NULL) {
int i;
for(i = 0; i < arrlen(handle->parent->children); i++) {