Explorar el Código

Added small help blurb to IDE sprite editor

Ivan Safrin hace 12 años
padre
commit
2d25605590
Se han modificado 1 ficheros con 9 adiciones y 3 borrados
  1. 9 3
      IDE/Contents/Source/PolycodeSpriteEditor.cpp

+ 9 - 3
IDE/Contents/Source/PolycodeSpriteEditor.cpp

@@ -140,7 +140,13 @@ PolycodeSpriteEditor::PolycodeSpriteEditor() : PolycodeEditor(true){
 	PropSheet *animationProps = new PropSheet("ANIMATIONS", "");
 	propList->addPropSheet(animationProps);
 
-	animationProps->propHeight = 200;
+	ScreenLabel *animHelpLabel = new ScreenLabel("Comma separated frames, ranges or repeats (e.g. 1,2,3-7,8x5)", 11);
+	animHelpLabel->color.a = 0.4;
+	animationProps->addChild(animHelpLabel);
+	animHelpLabel->setPosition(5, 40);
+
+
+	animationProps->propHeight = 230;
 	
 	animationsAnchor = new UIElement();
 	animationProps->contents->addChild(animationsAnchor);
@@ -165,9 +171,9 @@ PolycodeSpriteEditor::PolycodeSpriteEditor() : PolycodeEditor(true){
 
 void PolycodeSpriteEditor::refreshAnimationEntries() {
 	for(int i=0; i < animationEntries.size(); i++) {
-		animationEntries[i]->setPosition(0, 30*i);
+		animationEntries[i]->setPosition(0, 30 + (30*i));
 	}
-	addAnimationButton->setPosition(0, (animationEntries.size() * 30) + 10);
+	addAnimationButton->setPosition(0, 30 + (animationEntries.size() * 30) + 10);
 }