TextField Nifty

Hello, I use to create a nifty textField but when I show I have the textfield that appears but I can not write or click on a … I just have a flashing line!



Plz! help me

its possible you have another panel/layer on top preventing this. Post your code/xml.

[xml]<?xml version="1.0" encoding="UTF-8"?>

<nifty xmlns="http://nifty-gui.sourceforge.net/nifty-1.3.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://nifty-gui.sourceforge.net/nifty-1.3.xsd http://nifty-gui.sourceforge.net/nifty-1.3.xsd">



<useControls filename="nifty-default-controls.xml" />

<useStyles filename="nifty-default-styles.xml" />

<screen id="Menu" controller="interfaceMenu.InteractMenu">



<layer id="foreground" childLayout="horizontal" >

<panel id="panel_left" height="100%" width="100%" childLayout="absolute">



<text text="Nom du jeu" font="Interface/Fonts/Default.fnt" x="80%" y="10%" size="150%"/>



<control name="textfield" maxLength="20" text="Lool"/>







<control name="label" color="#00aeff" text="Solo" x="85%" y="75%"><interact onClick="Solo()"/></control>



<control name="label" color="#00aeff" text="Multi" x="85%" y="80%"><interact onClick="multi()"/></control>



<control name="label" color="#00aeff" text="Option" x="85%" y="85%"><interact onClick="option()"/></control>



<control name="label" color="#00aeff" text="Quiter" x="85%" y="90%"><interact onClick="quitGame()"/></control>







</panel>

</layer>

</screen>



<screen id="Solo" controller="interfaceMenu.InteractMenu">

<layer id="foreground" childLayout="horizontal" >

<panel id="panel_left" height="100%" width="100%" childLayout="absolute" align="right">

<text text="Nom du jeu" font="Interface/Fonts/Default.fnt" x="80%" y="10%" size="150%"align="right"/>

<text text="Solo" font="Interface/Fonts/Default.fnt" x="85%" y="75%" size="150%"/>

<control name="label" color="#00aeff" text="Nouvelle Partie" x="85%" y="80%" align="right"><interact onClick="goScreen(Solo_NewGame)"/></control>

<control name="label" color="#00aeff" text="Chargement" x="85%" y="85%"><interact onClick="multi()"/></control>

<control name="label" color="#00aeff" text="Retour" x="85%" y="90%"><interact onClick="goScreen(Menu)"/></control>

</panel>



</layer>

</screen>

<screen id="Solo_NewGame" controller="interfaceMenu.InteractMenu">



<layer id="foreground" childLayout="horizontal" >

<panel id="panel_left" height="100%" width="100%" childLayout="absolute" align="right">



<text text="Nom du jeu" font="Interface/Fonts/Default.fnt" x="80%" y="10%" size="150%"align="right"/>

<text text="Solo Nouvelle Partie" font="Interface/Fonts/Default.fnt" x="85%" y="75%" size="150%"/>



</panel>



</layer>



</screen>



</nifty>[/xml]



:slight_smile:

your textfield has no width

1 Like

A ok ^^ thanks