[MIRROR] Optimizes MouseEntered [MDB IGNORE] (#9900)

* Optimizes MouseEntered (#63246)

* Optimizes MouseEntered

Moves status_bar_set_text into the interface definition itself. We don't need to use MouseEntered for this
anymore, since lummy added an on-status paramerter to the main window This saves us a little under half our cpu
time

Gets rid of a needless ?. check, caches a datum var access, inlines a text define.
These all lower the cost of MouseEntered to some degree, though to be perfectly honest with you I really think
we should be doing everything on the client side.

The only reason I'm not moving screentext over there too is because there are plans to expand on screentips to
be contextual, which wouldn't be possible. Though now that I think about it maybe that's not even true....

Anyway, I'm doing what I can to not change behavior for now. Really kinda cheesed about this though.

* Some people are saying this (Cleans up the html a bit, tnx mothman)

Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>

* Optimizes MouseEntered

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-12-06 22:44:10 +00:00
committed by GitHub
co-authored by Mothblocks LemonInTheDark
parent 6eb443f00a
commit 3964e2febd
4 changed files with 8 additions and 28 deletions
+2 -1
View File
@@ -104,6 +104,7 @@ window "mapwindow"
anchor2 = -1,-1
saved-params = "pos;size;is-minimized;is-maximized"
is-pane = true
on-status = ".winset \"status_bar.text=[[*]]\" "
elem "map"
type = MAP
pos = 0,0
@@ -121,7 +122,7 @@ window "mapwindow"
pos = 0,464
size = 280x16
anchor1 = 0,100
is-visible = false
is-visible = true
text = ""
align = left
background-color = #222222