Allow markers to be used as light sources (#9733)
* Allow markers to be used as light sources * Better light source markers * Move PointMarker drawLight to LightMarker * Add a rule for unit lights * Optimize marker rendering * Update core/assets/bundles/bundle.properties --------- Co-authored-by: Anuken <arnukren@gmail.com>
This commit is contained in:
co-authored by
Anuken
parent
3378475f6a
commit
8626082068
@@ -1548,6 +1548,7 @@ public class LExecutor{
|
||||
}
|
||||
}
|
||||
case ambientLight -> state.rules.ambientLight.fromDouble(value.num());
|
||||
case unitLight -> state.rules.unitLight = value.bool();
|
||||
case solarMultiplier -> state.rules.solarMultiplier = Math.max(value.numf(), 0f);
|
||||
case dragMultiplier -> state.rules.dragMultiplier = Math.max(value.numf(), 0f);
|
||||
case ban -> {
|
||||
|
||||
@@ -4,6 +4,7 @@ public enum LMarkerControl{
|
||||
remove,
|
||||
world("true/false"),
|
||||
minimap("true/false"),
|
||||
light("true/false"),
|
||||
autoscale("true/false"),
|
||||
pos("x", "y"),
|
||||
endPos("x", "y"),
|
||||
|
||||
@@ -15,6 +15,7 @@ public enum LogicRule{
|
||||
lighting,
|
||||
canGameOver,
|
||||
ambientLight,
|
||||
unitLight,
|
||||
solarMultiplier,
|
||||
dragMultiplier,
|
||||
ban,
|
||||
|
||||
Reference in New Issue
Block a user