Results 1 to 1 of 1
  1. #1
    Top Sony Administrator Top Sony's Avatar
    Join Date
    Nov 2006
    Posts
    144
    Thanks
    3,915
    Thanked 817 Times in 59 Posts

    Menu/icons/shortcuts Tutorial!

    Author: louis*cyphre

    So, all structure of the menu of phone is registered in one file, having standard xml-structure. It is a file menu.ml, is in file system to the address of/tpa/preset/system/menu/menu.ml
    It is possible to get there by means of FAR-PLUG-INS (for CID36 and below), or by means of programs PhoneXC/PhoneXS..

    ! Before introducing any new change in the file menu.ml make its backup copy.. Or (For CID49), download from topsony.com (registration) FS file and extract menu.ml with the help of main2raw.

    For the editing menu.ml open by notepad. !: It is more preferable to use for this purpose any program with illumination of xml-syntax (of type Of emEditor), work will be considerably more convenient. After the saving of changes in the file, you put it back in the phone, in the same folder, from where it was taken (i.e. in /tpa/preset/system/menu/). The general Flash or simply Flash thus is not necessary.

    To replace/change [ICON]:
    1. We find in the file of such of lines (each of the menu!)
    <icon of pos= “unselected” source= “internal” >DESKTOP_WAP_ICN </icon>
    <icon of pos= “selected” source= “internal” >DESKTOP_WAP_SELECTED_ICN </icon>

    So, pos= “unselected” – this is ICON of the point of menu, to which selection cursor is not pointed
    pos= “selected” - respectively ICON of the active point of menu.
    source= “internal” - this is the source of the file ICON. In this case internal it means that ICON is taken, most likely, from MAIN, where to us, thus, is far out of reach.
    DESKTOP_WAP_ICN - proper name of an ICON.

    2. We prepare our [ICONS]. Roll formats PNG, JPG, GIF. It is best to use PNG or GIF, since in them transparency is supported. The size of [ICON] , until now, is not determined clearly, but people use these sizes:
    - For the inactive point – 55*36 (width X height) or 55*34
    - For active – 64*44 or 48*42.
    - Strictly, it is possible to place any sizes, even 100*100, but certainly this [ICON] will appear very close to adjacent one.
    3. For the main menu must come out to 24 [ICONS] (12 for the active and 12 for the inactive)
    4. To name these icons it is possible as it is necessary, and as you like, but the standard command for SELECTED ICON we must add _s in the end of icon name, For example: call.png(for INACTIVE ICON) and call_s.png. (for ACTIVE ICON)
    5. We put into these [ICONS] into the same folder where is located menu.ml, that is in tpa/preset/system/menu/
    6. File names can be important case. Therefore, in order to later avoid menu problems, make sure that all the file names are in lower case.
    [ICONS] are ready, proceed to the file editing menu.
    7. We change source= “internal” to source= “file”.
    8. We write instead of the names of [STANDARD ICONS] our names. For example:
    DESKTOP_WAP_ICN we change to wap.png
    9. As a result, for each item, for which we want to change the [ICON] it must be approximately this text:
    <element of id= “FMRadio” >
    <label of type= “name” textid= “FMR_FM_RADIO_TXT”/ >
    <icon of pos= “unselected” source= “file” >radio.png </icon>
    <icon of pos= “selected” source= “file” >radio_s.png </icon>
    <link of type= “internal”/ >
    </element>

    10. We put that altered menu.ml back into the phones' folder (/tpa/preset/system/menu/), along with ICONS that are new, and it is enjoyed by new icons (and braking at the first opening the menu)

    As to make reference in Java (Java):

    1. Let’s say we need to make reference on MobyExplorer.
    <link of type= “internal”/ > we change on <link of type= “java” javasuitename= “MobyExplorer” javasuitevendor= “Bermin Of software " javasuitepoint= “ftpmid.FtpMid "/ >

    javasuitename, javasuitevendor, javasuitepoint - we take v.Jad - file of application or toy or in MANIFEST.MF, which lies at the folder META-INF in the JAR- file.
    For example:
    Manifest-Version: 1.0
    Ant-Version: Apache Of ant 1.6.2
    Created-By: 1.4.2_10-b02 (Sun Of microsystems Of inc.)
    MIDlet-1: MobyExplorer, /folder_html.png, ftpmid.FtpMid
    MobyEncodingDefault: UTF-8
    MIDlet-Vendor: Bermin Of software
    Moby-Encoding-Custom: UTF-8#KOI8- R
    MIDlet-Description: File Of manager and FTP Of client
    MIDlet-Version: 2.1
    MIDlet-Name: MobyExplorer

    2. We preserve changes and put into a new file.

    How to make TabMenu (the tabs as Options)

    The structure Of tabMenu is:
    <menu of id= “SettingsTabMenuId” layout= “TabMenu” >
    <element of id= “SettingsTabMenuId” >
    <label of type= “name” textid= "..."/ >
    <icon of pos= “selected” source= “internal” >... </icon>
    <icon of pos= “unselected” source= “internal” >... </icon>
    <menu of id= "..." >
    <element of id= "..." >
    <label of type= “name” textid= "..."/ >
    <icon of pos= “left” source= “internal” >... </icon>
    <link of type= “internal”/ >
    </element>
    ................
    </menu>
    </element>
    .................
    </menu>

    1. We enter this structure instead:
    <link of type= “internal”/ >
    2. To add a new tab, we add this structure:
    <element of id= “SettingsTabMenuId” >
    <label of type= “name” textid= "..."/ >
    <icon of pos= “selected” source= “internal” >... </icon>
    <icon of pos= “unselected” source= “internal” >... </icon>
    <menu of id= "..." >
    <element of id= "..." >
    <label of type= “name” textid= "..."/ >
    <icon of pos= “left” source= “internal” >... </icon>
    <link of type= “internal”/ >
    </element>
    ................
    </menu>
    </element>

    3. To add new usual tab, we add this structure:
    <element of id= "..." >
    <label of type= “name” textid= "..."/ >
    <icon of pos= “left” source= “internal” >... </icon>
    <link of type= “internal”/ >
    </element>

    Please note that [ICON] are here smaller in the size!

    As to make another menu of 3*4 (as main menu):

    Structure of menu [s] layout= “DesktopTopMenuGFX2”, then is 3*4 it is such:
    <element of id= "..." >
    <label of type= “name” textid= "..."/ >
    <icon of pos= “unselected” source= “file” >... </icon>
    <icon of pos= “selected” source= “file” >... </icon>
    <menu of id= “MainMenu” layout= “DesktopTopMenuGFX2” >
    <accelerator>MapToKeypad </accelerator>
    <highlight>4 </highlight>

    <!- Java Of element 1 ->
    <element of id= "..." >
    <label of type= “name” > <text>... </text> </label>
    <icon of pos= “unselected” source= “file” >... </icon>
    <icon of pos= “selected” source= “file” >... </icon>
    <link of type= “internal”/ >
    </element>
    ...................
    </menu>
    </element>

    1. Run this structure rather than one of the main menu
    2. In order to add element, we put this structure:
    {<element of id= "..." }>
    <label of type= “name” > <text>... </text> </label>
    <icon of pos= “unselected” source= “file” >... </icon>
    <icon of pos= “selected” source= “file” >... </icon>
    <link of type= “internal”/ >
    </element>

    We add opera instead of the standard browser

    <!- Desktop Of element of 2 using DESKTOP_HOOK_2 ->
    <element of id= “InternetServices” >
    <label of type= “name” textid= “OLP_TITLE_TXT”/ >
    <icon of pos= “unselected” source= “file” >icon2_unselected.png </icon>
    <icon of pos= “selected” source= “file” >icon2_selected.png </icon>
    <link of type= “java” javasuitename= “Opera Of mini " javasuitevendor= “Opera Of software ASA” javasuitepoint= “com.opera.browser.Browser "/ >
    </element>

    Jimm instead of PlayNow

    <!- Desktop Of element of 1 using DESKTOP_HOOK_1 ->
    <element of id= “PlayNow” replace= “next” >
    <label of type= “name” > <text>Jimm ICQ </text> </label>
    <icon of pos= “unselected” source= “file” >icon1_unselected.png </icon>
    <icon of pos= “selected” source= “file” >icon1_selected.png </icon>
    <link of type= “java” javasuitename= “Jimm” javasuitevendor= “Jimm Of project " javasuitepoint= “jimm.Jimm "/ >
    </element>

    A new menu items ( >12), do not try to add, the body will be constantly reloaded.

    As to the names of their menu items:

    We substitute:
    <label of type= “name” textid= "..."/ > on <label of type= “name” > <text>... </text> </label}. Where, between the tags <text> </text> we write your “name item”.

    Small addition:
    If we want to change the name is paragraph, and the menu, for example:
    <menu of id= “Menu_Entertainment_Id”> , we write then type not “name”, A “TITLE”


    MODIFYING THESE SETTINGS INCORRECTLY CAN DAMAGE SOME PHONE OPERATIONS, IN WHICH CASE YOU WILL HAVE TO FLASH YOUR CORRECT FS TO THE PHONE!
    IF YOU ARE NOT SURE, DO NOT MODIFY THESE SETTINGS!!!!

    Below are examples of selected (active) and unselected (inactive) icons

    Imágenes Adjuntas


  2. The Following 13 Users Say Thank You to Top Sony For This Useful Post:


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •