fix guide post pictures and interaction icons

master
Maikel de Vries 2018-03-03 12:19:03 +01:00
parent a2d7374302
commit 65daa55156
2 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,7 @@ public func IsInteractable() { return inscription != ""; }
// Adapt appearance in the interaction bar.
public func GetInteractionMetaInfo(object clonk)
{
return { Description = "$MsgRead$", IconName = nil, IconID = GetID(), Selected = false };
return { Description = "$MsgRead$", Selected = false };
}
// Called on player interaction.
@ -45,6 +45,7 @@ public func Definition(def)
{
// Model file is way too large
def.MeshTransformation = Trans_Scale(360);
def.PictureTransformation = Trans_Scale(900);
// Inscription props
if (!def.EditorProps) def.EditorProps = {};
def.EditorProps.inscription = { Name="$Inscription$", Type="string", EditorHelp="$InscriptionHelp$", Set="SetInscription", Save="Inscription", Translatable=true };

View File

@ -21,4 +21,5 @@ public func Definition(def)
_inherited(def);
// Model file is way too large
def.MeshTransformation = Trans_Scale(130);
def.PictureTransformation = Trans_Mul(Trans_Translate(-5000, -60000, 150000), Trans_Rotate(-20, 0, 1), Trans_Scale(400));
}