Home > other >  Lua. How to control Poptip PopMsg number
Lua. How to control Poptip PopMsg number

Time:09-24

Please use Poptip. PopMsg when more than how to avoid the same information displayed on the screen?


For example: Poptip PopMsg (" locked ", Color. Red)

Repeat will not have been displayed on the screen when I click on the button in a row has targeted

I can think of is a bool variable with coroutines control self. Tiped=false, on the display after the first set to true, then the time triggered when
Determine the value, if true would not be in prompt, as follows:

StartCoroutine (self, self TipMesage, {})

The function wnd_HouseClass: TipMesage ()
If not the self. The Tiped then
Poptip. PopMsg (SData_Id2String. Get (3244), Color red)
End

The self. The Tiped=true
Yield (4)
The self. The Tiped=false
End

But this control is not stable, sometimes will prompt a lot of article, solving
  • Related