playMaker

Author Topic: Add abbreviated variable to name (SUPER NICE TO HAVE)  (Read 4556 times)

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Add abbreviated variable to name (SUPER NICE TO HAVE)
« on: October 30, 2014, 06:34:10 PM »
Just thinking how handy it would be to have an option to add an abbreviation to variables

variable_f
variable_int
variable_s
variable_go
variable_c
variable_ob
etc

Thoughts?
« Last Edit: October 30, 2014, 06:36:58 PM by LampRabbit »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Add abbreviated variable to name (SUPER NICE TO HAVE)
« Reply #1 on: January 15, 2015, 02:24:19 AM »
Hi,

 I don't get it :)

can you give a use case? do you mean seeing the type of the variable selected in action interfaces? or do you mean a way to have this in the variable name itself?

Bye,

 Jean

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Add abbreviated variable to name (SUPER NICE TO HAVE)
« Reply #2 on: January 15, 2015, 02:37:17 AM »
Fair enough, this could just be how I name my variables, but I find it super handy. I always put an abbreviation on the end of a variable.

For example

Coins_int
Coins_s
Coins_go

It's very helpful when you need to convert a variable as you can use the same name (see above)

« Last Edit: January 15, 2015, 02:46:02 AM by LampRabbit »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Add abbreviated variable to name (SUPER NICE TO HAVE)
« Reply #3 on: January 15, 2015, 07:06:41 AM »
Variables with the same name even of different types aren't allowed. Do you mean you would like to see a suffix added to variables while creating them so you dont have to type it manually?
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Add abbreviated variable to name (SUPER NICE TO HAVE)
« Reply #4 on: January 15, 2015, 02:55:50 PM »
Variables with the same name even of different types aren't allowed. Do you mean you would like to see a suffix added to variables while creating them so you dont have to type it manually?

Yep! Typing it isn't a big deal but I just thought it might be helpful for people that start using playmaker .... maybe .. maybe not.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Add abbreviated variable to name (SUPER NICE TO HAVE)
« Reply #5 on: January 16, 2015, 04:59:12 AM »
Hi,

 what I think would be helping a lot, even me, would be to have a clear visual indication of action properties fields as far as what type of variable is expected. Many times, I have to wait for the tooltip to kick in to know this information, and simply small icon with letters like you mention would help a lot! [f], , , and maybe also a color scheme as well.

 Bye,

 Jean

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Add abbreviated variable to name (SUPER NICE TO HAVE)
« Reply #6 on: January 16, 2015, 05:57:28 AM »
Yeah that would help a lot. I like how the gameobject variable gets the blue, green, red icon ... maybe other variables need something like that.

I tried adding the abbreviation to the variable names (see image) not sure how it reads!? also tried an icon version (ignore the random icons :P)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Add abbreviated variable to name (SUPER NICE TO HAVE)
« Reply #7 on: January 19, 2015, 12:59:45 AM »
Hi,

 yep, that would be great to have

Bye,

 Jean

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Add abbreviated variable to name (SUPER NICE TO HAVE)
« Reply #8 on: January 19, 2015, 07:32:42 AM »
The icons are significantly more intuitive and I do like those, having them would probably help a lot with initial action readability so you don't have to rely on the tooltips unless you absolutely need to.

Not so sure about the suffix.. Unless the conditions for the suffix being added to the named variables are very clearly defined, I think this would be more confusing than useful. I would not want to see it on the action's variable names for sure and I can only see it being useful on local variables to a limited extent.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Add abbreviated variable to name (SUPER NICE TO HAVE)
« Reply #9 on: January 19, 2015, 08:05:59 AM »
Hi,

 yeah, I think icons would suffice, because they would be everywhere, and so suffix would not be needed imo.

 Bye,

 Jean