home *** CD-ROM | disk | FTP | other *** search
/ Xentax forum attachments archive / xentax.7z / 7309 / 010EditorTemplates.7z / ChoL-localisation-common-template.bt < prev    next >
Encoding:
Text File  |  2014-05-08  |  1.7 KB  |  40 lines

  1. //--------------------------------------
  2. //--- CHILD OF LIGHT localization common file
  3. //
  4. // File: localization_common.isg.ckd
  5. // Author: tomsolo
  6. // Revision: 0.00001
  7. // Purpose: Life is Running
  8. //--------------------------------------
  9. BigEndian();
  10. byte    header[16]                  <hidden=true>;                                      //  Set any field to true, if dont need.
  11.  
  12. struct  LOCALIZATION (int i){
  13.     local  int count                <hidden=false>;                                     //  Set Show local variables if need this.
  14.     count = i+1;
  15.     int64   hash                    <hidden=true, /*bgcolor=0xFFBF00,*/format=hex>;     //  Yeah, this is not hash :)
  16.     int     stringLength            <hidden=false, bgcolor=0x00FF7F, name="Length">;    //  Length of the localised string. 
  17.     char    content[stringLength]   <bgcolor=0x7280FA, name="String">;                  //! Non-ascii chars need two bytes ! 
  18.     //!  UTF8 editing! 
  19.     //1. Please set Tools -> Options -> Files Interfaces -> Hex editor -> Charachter Set to UTF8!
  20.     //2. Before Editing add exact byte length of your localized text and cut(DEL) or add extra bytes! (CTRL+SHIFT+I)
  21. };
  22.  
  23. local  int i                        <hidden= true>;
  24.  
  25. for( i = 0; i < 121; i++ )
  26.     {
  27.         if (i < 10){
  28.             LOCALIZATION loc(i)        <open=true, name="LOCALIZATION">;
  29.         } 
  30.         if (i == 10){
  31.             byte pad[8]             <hidden=true>;                                      //SOMETHING EXTRA
  32.             LOCALIZATION loc(i)     <open=true, name="LOCALIZATION">;
  33.         } 
  34.         if (i > 10){
  35.             LOCALIZATION loc(i)     <open=true, name="LOCALIZATION">;
  36.         }            
  37. }
  38. //EOF-----------------------------------
  39.  
  40.