Welcome, Guest
Username: Password: Remember me

TOPIC: Increase the Height of the LanguageSource Inspecto

Increase the Height of the LanguageSource Inspecto 4 years 7 months ago #133

  • aholla
  • aholla's Avatar
  • Offline
  • New Member
  • Posts: 7
  • Karma: 0
Hi, I have just started using l2 and so far so good. I did have problems getting it to parse my csv file correctly, it seems I have to label my colums correctly eg Terms, Type, Description, not "Keys" as shown in the example.

Anyway, I would really like to be able to expand the inspector widget so that it takes up the how inspector rather than 500px or so. Where is the height specified?

Thanks!
The administrator has disabled public write access.

Increase the Height of the LanguageSource Inspecto 4 years 7 months ago #139

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 1178
  • Thank you received: 253
  • Karma: 78
Hi,
The plugins requires specific columns names in order to recognize that the spreadsheet has the right format. So normally, its a better idea, to add a few empty languages to the LanguageSource, and then export the spreadsheet so that it generates the right format.
Once you have the right spreadsheet you are safe to add new terms and they will be imported to the i2 source.

The list of terms in the inspector is set to 300px at the moment.
Initially it was to expand to cover all the screen height, but when more than one component was in the same object than the source it was hard to edit the other components.

The line that sets the height of the list is on LocalizationEditor_Terms.cs line 34
void OnGUI_KeysList(bool AllowExpandKey = true, float Height = 300.0f, bool ShowTools=true)
Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
The administrator has disabled public write access.
The following user(s) said Thank You: aholla

Increase the Height of the LanguageSource Inspecto 4 years 7 months ago #145

  • aholla
  • aholla's Avatar
  • Offline
  • New Member
  • Posts: 7
  • Karma: 0
Cool I found it. I also took the liberty of adding a slider that dynamically changes the height of the panel. I wonder if anyone else might find this useful until a better solution is available anyway.

(The height in the "LocaliseEditor_Terms" is set to a static float which is set via the inspector in "Language source Inspector")

Thanks.
Attachments:
The administrator has disabled public write access.
Time to create page: 0.090 seconds
Template by JoomlaShine