Allow markers to use content/displays as textures (#11142)
* Allow markers to use content/displays as textures * Don't process empty commands * Allow canvases to be used as marker textures * Proper Json serialization --------- Co-authored-by: Anuken <arnukren@gmail.com>
This commit is contained in:
@@ -2067,7 +2067,7 @@ public class LExecutor{
|
||||
marker.setTexture(exec.textBuffer.toString());
|
||||
exec.textBuffer.setLength(0);
|
||||
}else{
|
||||
marker.setTexture(PrintI.toString(p2.obj()));
|
||||
marker.setTexture(p2.obj());
|
||||
}
|
||||
}else{
|
||||
marker.control(type, p1.numOrNan(), p2.numOrNan(), p3.numOrNan());
|
||||
@@ -2138,10 +2138,10 @@ public class LExecutor{
|
||||
}
|
||||
|
||||
@Remote(called = Loc.server, variants = Variant.both, unreliable = true)
|
||||
public static void updateMarkerTexture(int id, String textureName){
|
||||
public static void updateMarkerTexture(int id, Object texture){
|
||||
var marker = state.markers.get(id);
|
||||
if(marker != null){
|
||||
marker.setTexture(textureName);
|
||||
marker.setTexture(texture);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user