mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 23:11:12 -08:00
Adds LAccess.bufferUsage, fixes wrong property names for displayWidth and displayHeight (#10679)
* Adds LAccess.bufferUsage - sensable property returning number of unprocessed commands in the graphics buffer of a display. Fixes wrong property keys (lacess.* -> laccess.*) of the recently added displayWidth and displayHeight properties. * Revert unnecessary bundle updates
This commit is contained in:
parent
a394084f37
commit
c3e2bcf2e7
5 changed files with 9 additions and 4 deletions
|
|
@ -2551,8 +2551,9 @@ laccess.progress = Action progress, 0 to 1.\nReturns production, turret reload o
|
|||
laccess.speed = Top speed of a unit, in tiles/sec.
|
||||
laccess.size = Size of a unit/building or the length of a string.
|
||||
laccess.id = ID of a unit/block/item/liquid.\nThis is the inverse of the lookup operation.
|
||||
lacess.displaywidth = Width of a display block in pixels.
|
||||
lacess.displayheight = Height of a display block in pixels.
|
||||
laccess.displaywidth = Width of a display block in pixels.
|
||||
laccess.displayheight = Height of a display block in pixels.
|
||||
laccess.bufferusage = Number of unprocessed commands in the graphics buffer of a display.
|
||||
|
||||
lcategory.unknown = Unknown
|
||||
lcategory.unknown.description = Uncategorized instructions.
|
||||
|
|
|
|||
|
|
@ -2507,8 +2507,9 @@ laccess.progress = Průběh akce, 0 do 1.\nVrací průběh výroby, přebití v
|
|||
laccess.speed = Top speed of a unit, in tiles/sec.
|
||||
laccess.size = Size of a unit/building or the length of a string.
|
||||
laccess.id = ID of a unit/block/item/liquid.\nThis is the inverse of the lookup operation.
|
||||
lacess.displaywidth = Width of a display block in pixels.
|
||||
lacess.displayheight = Height of a display block in pixels.
|
||||
laccess.displaywidth = Šířka displeje v pixelech.
|
||||
laccess.displayheight = Výška displeje v pixelech.
|
||||
laccess.bufferusage = Počet nezpracovaných příkazů ve vyrovnávací paměti displeje.
|
||||
lcategory.unknown = Neznámé
|
||||
lcategory.unknown.description = Nezařazené instrukce.
|
||||
lcategory.io = Vstup a Výstup
|
||||
|
|
|
|||
|
|
@ -175,3 +175,4 @@ sasha0552
|
|||
6-BennyLi-9
|
||||
SeuEarth
|
||||
The4codeblocks
|
||||
cardillan
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ public enum LAccess{
|
|||
cameraHeight,
|
||||
displayWidth,
|
||||
displayHeight,
|
||||
bufferUsage,
|
||||
size,
|
||||
solid,
|
||||
dead,
|
||||
|
|
|
|||
|
|
@ -110,6 +110,7 @@ public class LogicDisplay extends Block{
|
|||
public double sense(LAccess sensor){
|
||||
return switch(sensor){
|
||||
case displayWidth, displayHeight -> displaySize;
|
||||
case bufferUsage -> commands.size;
|
||||
default -> super.sense(sensor);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue