Jump to content

Staff Hidden Attributes


22764636
 Share

Recommended Posts

I own the In-Game Editor and I am trying to add a new tab on the Staff panel to show CA and PA but I am miserably failing. I have very little experience with editing FM xmls but I love fiddling around nonetheless.

I have managed to add a new radio button by adding the below code on non player profile in non_player

<widget class="radio_button" click_event="HdtW" id="HdtW" auto_size="horizontal" appearance="tabs/subsection/normal/top/button" icon_enabled="false" show_button_appearance="true" secondary_icon_enabled="true" secondary_icon="icons/16px/medical" secondary_icon_alignment="left">
  <translation id="text" type="use" value="Hidden" />
  <event id="click_event">
    <flags id="event_id" value="eAtH" />
    <flags id="mode" value="5" />
  </event>
</widget>

and have added this in non player attributes panel in non_player

<!-- Hidden Table -->
<widget class="table" id="aaaa" mode="fill_rows, printable" layout="-4, -1" auto_size="vertical" row_spacing="1" row_height="22">
  <list id="headings">
    <record alignment="left,centre_y" column_span="2">
      <translation id="text" type="use" value="Hidden" />
    </record>
  </list>
</widget>
<widget class="client_object_label_value_table" id="aaaa" mode="fill_rows, printable" layout="-4, -1" auto_size="vertical" row_spacing="1" row_height="22">
  <record id="object_property">
    <integer id="get_property" value="objt" />
    <integer id="set_property" value="objt" />
  </record>
  <list id="column_widget_properties">
    <record indx="0" alignment="left,centre_y" spec="text" />
    <record indx="1" alignment="right,centre_y" style="semi_bold" />
  </list>
  <list id="column_table_properties">
    <record indx="0" left="8" sort_disabled="true" />
    <record indx="1" right="4" sort_disabled="true" />
  </list>
  <list id="viewed_property_ids">
    <integer value="Ncra" />
    <integer value="Npta" />
  </list>
</widget>

as you can see below the CA and PA shows on any tab while I would like them to show only when I select Hidden:

image.png.1273afb15b2d2186d42853874986551a.png

any help is very appreciated

 

 

Link to post
Share on other sites

1 hour ago, 22764636 said:

I own the In-Game Editor and I am trying to add a new tab on the Staff panel to show CA and PA but I am miserably failing. I have very little experience with editing FM xmls but I love fiddling around nonetheless.

I have managed to add a new radio button by adding the below code on non player profile in non_player

<widget class="radio_button" click_event="HdtW" id="HdtW" auto_size="horizontal" appearance="tabs/subsection/normal/top/button" icon_enabled="false" show_button_appearance="true" secondary_icon_enabled="true" secondary_icon="icons/16px/medical" secondary_icon_alignment="left">
  <translation id="text" type="use" value="Hidden" />
  <event id="click_event">
    <flags id="event_id" value="eAtH" />
    <flags id="mode" value="5" />
  </event>
</widget>

and have added this in non player attributes panel in non_player

<!-- Hidden Table -->
<widget class="table" id="aaaa" mode="fill_rows, printable" layout="-4, -1" auto_size="vertical" row_spacing="1" row_height="22">
  <list id="headings">
    <record alignment="left,centre_y" column_span="2">
      <translation id="text" type="use" value="Hidden" />
    </record>
  </list>
</widget>
<widget class="client_object_label_value_table" id="aaaa" mode="fill_rows, printable" layout="-4, -1" auto_size="vertical" row_spacing="1" row_height="22">
  <record id="object_property">
    <integer id="get_property" value="objt" />
    <integer id="set_property" value="objt" />
  </record>
  <list id="column_widget_properties">
    <record indx="0" alignment="left,centre_y" spec="text" />
    <record indx="1" alignment="right,centre_y" style="semi_bold" />
  </list>
  <list id="column_table_properties">
    <record indx="0" left="8" sort_disabled="true" />
    <record indx="1" right="4" sort_disabled="true" />
  </list>
  <list id="viewed_property_ids">
    <integer value="Ncra" />
    <integer value="Npta" />
  </list>
</widget>

as you can see below the CA and PA shows on any tab while I would like them to show only when I select Hidden:

image.png.1273afb15b2d2186d42853874986551a.png

any help is very appreciated

 

 

am i understanding this correct.
you want to be able to click a button and then the "hidden" shows and when you click again it vanishes ?

Link to post
Share on other sites

19 minutes ago, snowofman said:

am i understanding this correct.
you want to be able to click a button and then the "hidden" shows and when you click again it vanishes ?

yes like all the other buttons do? By Hidden I mean the hidden stats like CA and PA

Link to post
Share on other sites

14 minutes ago, 22764636 said:

yes like all the other buttons do? By Hidden I mean the hidden stats like CA and PA

ahh okay, i'll take a look after i have slept, it's about time now..  it's 1:37 pm and i havnt slept all night.. anyway, if noone else have helped. i'll give it a try when i wake up
where did you get the id's from ? hdtw ?

Link to post
Share on other sites

1 hour ago, snowofman said:

ahh okay, i'll take a look after i have slept, it's about time now..  it's 1:37 pm and i havnt slept all night.. anyway, if noone else have helped. i'll give it a try when i wake up
where did you get the id's from ? hdtw ?

ahah good night buddy.

that is something I have assigned myself, I have also tried to replace it with an ID of a previous selection (Coaching, Medical...) but not even those show up when I click on Hidden.

I believe this

<flags id="mode" value="5" />

is the key

Link to post
Share on other sites

8 hours ago, 22764636 said:

ahah good night buddy.

that is something I have assigned myself, I have also tried to replace it with an ID of a previous selection (Coaching, Medical...) but not even those show up when I click on Hidden.

I believe this

<flags id="mode" value="5" />

is the key

no progress today, will try again tomorrow or later if i can't sleep. 
too old to do all nighters

Link to post
Share on other sites

12 hours ago, snowofman said:

no progress today, will try again tomorrow or later if i can't sleep. 
too old to do all nighters

don't tell me, saturday went to sleep at 2045 and woke up at 7 the morning after

thanks for trying tho :)

Link to post
Share on other sites

yeah :( 
Anyway,  This "seems" to be another one of those hardcoded pieces, There is indeed the "Mode" call, and then there is the way they call info in the same file. how thats done seems to elude me aswell

 

i even tried to make a simple Tabs to see if that was possible, but the file / page is just strange overall..
So for now i have to toss in the towel and give up, but i will be having it in my thoughts and if i come up with a solution, i'll keep you posted.. 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...