forked from 0ad/0ad
parent
798cff1f6f
commit
b15eb6909e
@ -327,12 +327,10 @@ function displaySingle(entState)
|
|||||||
{
|
{
|
||||||
const iconBorder = Engine.GetGUIObjectByName("iconBorder");
|
const iconBorder = Engine.GetGUIObjectByName("iconBorder");
|
||||||
|
|
||||||
// Actions on left click
|
|
||||||
iconBorder.onPress = () => {
|
iconBorder.onPress = () => {
|
||||||
setCameraFollow(entState.id);
|
setCameraFollow(entState.id);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Actions on right click
|
|
||||||
iconBorder.onPressRight = () => {
|
iconBorder.onPressRight = () => {
|
||||||
showTemplateDetails(entState.template, playerState.civ);
|
showTemplateDetails(entState.template, playerState.civ);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user