View Single Post
  #2 (permalink)  
Old 01-08-2009, 02:31 PM
ShadowDrake's Avatar
ShadowDrake
Guest
 
Posts: n/a
Mentioned: Post(s)
Tagged: Thread(s)
Re: Adding tabs to TF3D?

It's sad that this didn't get an answer.

Yes, you can add tabs, it's not very difficult. Generally, all that is involved is editing your 26948339_Manila file. Copy it from your device, open note pad, drag and drop the file into notepad to open it.

It's an xml file so it's structured. Scroll down a little to the line that says
Code:
<!-- 'page' extension == Manila pages -->
Listed below are all the tabs for TF3D! You should notice that the first thing it says is PageOrder="0"... that means that tab is the first one. By default, they should be in order, but it doesn't matter where you add the text for new tabs, just be sure that you do not have two tabs at number 2, for example.

I have added two tabs to my TF3D... Call history and Comm manager. Here is the code for each:

Call history (BY DEFAULT AFTER PEOPLE TAB! Remember to change the Page Order numbers if you want it somewhere else, and also remember to change the other page numbers afterwards). Additionally, you will need a file that is attached, 1d1ee632_manila. If you do not add that file, but paste this in your 26948339_manila file, TF3D will not start, and you will have to delete 269* to have the default one re-created.
Code:
      <Page Order="2" Name="callhistory.page" PackageName="HTC" Title="[[IDS_CALLLOGTITLE]]" ExternalScriptPath="HTC\Scripts\orangecalllogtransitions.luac">
        <ComponentReference Name="page" Mode9Path="HTC\CallLog.mode9" Component="GizmoRoot" SmartComponent="true" />
        <ComponentReference Name="icon_normal" Mode9Path="HTC\Icons.mode9" Component="People_CallHistory_Off" />
        <ComponentReference Name="icon_selected" Mode9Path="HTC\Icons.mode9" Component="People_CallHistory_On" />
        <ComponentReference Name="icon_preview" Mode9Path="HTC\Icons.mode9" Component="People_CallHistory_Preview" />
        <ComponentReference Name="icon_notification" Mode9Path="HTC\Icons.mode9" Component="Notification_People_CallHistory" />
      </Page>
Second, here is the code for a Comm Manager tab, which I have placed just before the settings tab. I only have 11 tabs (no sprint TV, though I will eventually be adding that back), so just like before, remember to change the page order number to suit where you would like it to be. The comm manager background will be black by default, to change the text to grey, you need to copy 1f3be060_manila that is attached here as well. Why grey instead of white? Because under settings, the Sounds menu has a white background... There is only one location where the text color for TF3D is stored, so grey works for both black and white backgrounds.
Code:
      <Page Order="9" Name="communications.page" PackageName="HTC" Title="[[IDS_COMMUNICATIONS]]" >
        <ComponentReference Name="page" Mode9Path="HTC\settings.mode9" Component="CommunicationsPageComponent" SmartComponent="true" />
        <ComponentReference Name="icon_normal" Mode9Path="HTC\icons.mode9" Component="Programs_Off" />
        <ComponentReference Name="icon_selected" Mode9Path="HTC\icons.mode9" Component="Programs_On" />
        <ComponentReference Name="icon_preview" Mode9Path="HTC\icons.mode9" Component="Programs_Preview" />
      </Page>
Last, if the title of your Comm manager tab is [[IDS_COMMUNICATIONS]], you either need to edit your 090661f7_manila and add:
Code:
      <trans-unit id="IDS_COMMUNICATIONS">
        <source>Comm Manager</source>
      </trans-unit>
, or change in the code above for the comm manager, where it says [[IDS_COMMUNICATIONS]] to say whatever you like. The reason it says what it says is because the 090661f7_manila file is a localization file, so anywhere it would say Comm Manager, or anything else can be changed by only editing a single line in a single file, instead of searching through tons of _manila files to correct a problem, or change the language. So I ask if you only edit the [[IDS_COMMUNICATIONS]] line that you do not share your modified file! Thanks

I'll also attach my 26948449_manila file, as well as all 4 in a single .zip archive.
Reply With Quote
This post has been thanked 17 times.