|
|
@ -69,8 +69,6 @@ void VarIcon::setpos(uint16_t posx, uint16_t posy) { |
|
|
|
flushcfg(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void VarIcon::dumpinfo() { |
|
|
|
readcfg(); |
|
|
|
printf("m_VP = %04x\n", m_descript.m_VP); |
|
|
@ -95,7 +93,7 @@ bool VarIcon::setVal(uint16_t val) { |
|
|
|
} |
|
|
|
uint16_t VarIcon::getVal() { |
|
|
|
uint16_t val = 0xffff; |
|
|
|
if(m_hide) return m_val; |
|
|
|
if (m_hide) return m_val; |
|
|
|
m_dwin_screen->read_varspace16(m_descript.m_VP, val, 100); |
|
|
|
return val; |
|
|
|
} |
|
|
@ -107,9 +105,13 @@ void VarIcon::hide() { // |
|
|
|
*/ |
|
|
|
m_hide = true; |
|
|
|
}; |
|
|
|
void VarIcon::show() { |
|
|
|
m_hide = false; |
|
|
|
_setVal(m_val); |
|
|
|
void VarIcon::show(bool showval) { |
|
|
|
if (showval) { |
|
|
|
m_hide = false; |
|
|
|
_setVal(m_val); |
|
|
|
} else { |
|
|
|
hide(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
VarIconDescript_t &VarIcon::getDescript() { return m_descript; } |
|
|
|