Bit of a problem with an app Im making... - Hero, G2 Touch Android Development

Hi,
I am new to android development so sorry if this question has a really obvious answer. I am hoping to make a game for the platform but to start with I have just tried to make a basic layout of 4 buttons to move in different directions and then have a background and an image in front which will be my sprite and move across the screen depending on what button is pressed.
At the moment I have created two views. One via the main xml document and the other through the java code itself. The java code one contains the background and image to be drawn and the main.xml contains the buttons.
At the moment I have my code set up like this:
this.setContentView(R.layout.main); <<<<<<<<<< xml
this.setContentView(this.myTestView); <<<<<<<<<<<<<< java
I am aware that I am basically setting one and then setting the other over the top of it and this means that only one of these views will appear. Does anyone know of a way I can use these views in conjunction so that both the images frm the java file and the layout from the xml can both be used?
Cheers for any help.
ExO

As far as I know you cannot do this. By calling setContentView you are overwriting the object which held the content previously.
Once the view is set you can add items in code after this call.
Why do you not have all the elements in the xml?

aw ok, i wasnt sure if it was possible or not. The reason I did it like this was just because I'm still learning to use both languages. Aswell as that I am using droiddraw to generate my xml and couldnt see an option within that to add images etc. Cheers for the reply .

Related

Chome Panel Chooser

Hey guys. Whipped this thing up to help people choose the panels that can be displayed on the homescreen. So far it only contains 7 entries, the ones I found on my phone. You can turn the panels off or on, by selecting a panel and typing it "off" or "on" respectively. After you make the changes, you need to reboot to see the changes. The last option will make that easier for you. Choose "Reboot", type "yes" and it will reboot for you. Let me know if there's any other panel names you would like me to add, or if you find any bugs. Thanks!
Look good but isn't this just like the chome settings (neoOrder) that is in Rockys ROM where you can enable and disable the windows you want and change which position they are in on the screen?
Clydeisthe**** said:
Look good but isn't this just like the chome settings (neoOrder) that is in Rockys ROM where you can enable and disable the windows you want and change which position they are in on the screen?
Click to expand...
Click to collapse
Everyone isn't running rickwyatt's ROM. Some are still with Kavana's. Like me.
Rip Syntaxx said:
Everyone isn't running rickwyatt's ROM. Some are still with Kavana's. Like me.
Click to expand...
Click to collapse
ohh ok I didn't know that it wasn't in Kavana's ROM I have never flashed one of his just Rickys .. my bad
Clydeisthe**** said:
ohh ok I didn't know that it wasn't in Kavana's ROM I have never flashed one of his just Rickys .. my bad
Click to expand...
Click to collapse
To Clyde: It's cool. Contrary to popular belief, there are still some users that are on Kavana's ROMs. lol I have no problem with rickwyatt's, but I found them to have too many apps and tweaks that I found unnecessary for me personally.
To Org (and anyone who'll listen): This is great idea for those who aren't quite comfortable with editing their .xml files to rearrange the slider panels (like me)! I've noticed that many users have a panel called "My Programs". What do I need to do to create this? I think it's a really useful tool to "slide" straight through the programs you use on a regular basis. I've already read tons of posts on this, but it's not registering. Thanks in advance, guys.
It's difficult to sit here and do a step by step, but I'll point you in the right direction and answer your questions later.
1) Download a registry editor or use the one on the phone.
2) First off, keep in mind there's TWO places in the registry where you need to make changes. One is HKLM\Security\Chome\DefaultSettings\CWelcomeCenter and HKLM\Software\Microsoft\Chome\CWelcomeCenter
3) Look for a key that says "Disabled" and make sure it doesn't say "1". Or use my utility to turn the welcome center on.
4) When you're in the registry you'll find Page1, Page2, Page3 etc etc in both places. Each Page represents ONE slide. For each page you can makes changes such as... ACTIONURL is the path to the program you want to execute when hitting the middle button. for example "\program files\NRG\Chomeweathersettings\weather.exe" will run the weather program
SK2URL is the same, but for the right softkey. SK2Text is a label for that softkey. The "pictures" key points to the .png file you will be using as an icon for your program. Right now it probably says "2500". Change it to "\windows\weather.png" and you'll get the weather icon in its place, for example. The Title text is self descriptive... put in whatever you want the title of the slide to be.
I hope you can figure it out from here
OrganicM said:
It's difficult to sit here and do a step by step, but I'll point you in the right direction and answer your questions later.
1) Download a registry editor or use the one on the phone.
2) First off, keep in mind there's TWO places in the registry where you need to make changes. One is HKLM\Security\Chome\DefaultSettings\CWelcomeCenter and HKLM\Software\Microsoft\Chome\CWelcomeCenter
3) Look for a key that says "Disabled" and make sure it doesn't say "1". Or use my utility to turn the welcome center on.
4) When you're in the registry you'll find Page1, Page2, Page3 etc etc in both places. Each Page represents ONE slide. For each page you can makes changes such as... ACTIONURL is the path to the program you want to execute when hitting the middle button. for example "\program files\NRG\Chomeweathersettings\weather.exe" will run the weather program
SK2URL is the same, but for the right softkey. SK2Text is a label for that softkey. The "pictures" key points to the .png file you will be using as an icon for your program. Right now it probably says "2500". Change it to "\windows\weather.png" and you'll get the weather icon in its place, for example. The Title text is self descriptive... put in whatever you want the title of the slide to be.
I hope you can figure it out from here
Click to expand...
Click to collapse
Thanks a bunch, man. I'm gonna finagle with this as soon as I get off.
OrganicM said:
It's difficult to sit here and do a step by step, but I'll point you in the right direction and answer your questions later.
1) Download a registry editor or use the one on the phone.
2) First off, keep in mind there's TWO places in the registry where you need to make changes. One is HKLM\Security\Chome\DefaultSettings\CWelcomeCenter and HKLM\Software\Microsoft\Chome\CWelcomeCenter
3) Look for a key that says "Disabled" and make sure it doesn't say "1". Or use my utility to turn the welcome center on.
4) When you're in the registry you'll find Page1, Page2, Page3 etc etc in both places. Each Page represents ONE slide. For each page you can makes changes such as... ACTIONURL is the path to the program you want to execute when hitting the middle button. for example "\program files\NRG\Chomeweathersettings\weather.exe" will run the weather program
SK2URL is the same, but for the right softkey. SK2Text is a label for that softkey. The "pictures" key points to the .png file you will be using as an icon for your program. Right now it probably says "2500". Change it to "\windows\weather.png" and you'll get the weather icon in its place, for example. The Title text is self descriptive... put in whatever you want the title of the slide to be.
I hope you can figure it out from here
Click to expand...
Click to collapse
I'm understanding how to read the code. Thanks for breaking it down. I'm just having trouble finding the .pngs for my icons and also (noob moment) finding the target file for certain applications. It's keeping me from being able to input the file address for ACTIONURL and SK2URL.
Not Hard to Find
Just think of your program, "Where is it stored?"
That should be your only question when finding your target file. That simple, you should look in your Program Files directory on your phone or you storage card, that will then tell you where the link is.
2ndly, you can find other programs in your startup folder. They will be listed in link format, but this is fine, the link can be treated basically as the exact file itself (as far as your phone is concerned).
Long story short, use these locations for your entries for ACTIONURL and SK2URL. Have a blast!
Rip Syntaxx said:
I'm understanding how to read the code. Thanks for breaking it down. I'm just having trouble finding the .pngs for my icons and also (noob moment) finding the target file for certain applications. It's keeping me from being able to input the file address for ACTIONURL and SK2URL.
Click to expand...
Click to collapse
outerdepth said:
Just think of your program, "Where is it stored?"
That should be your only question when finding your target file. That simple, you should look in your Program Files directory on your phone or you storage card, that will then tell you where the link is.
2ndly, you can find other programs in your startup folder. They will be listed in link format, but this is fine, the link can be treated basically as the exact file itself (as far as your phone is concerned).
Long story short, use these locations for your entries for ACTIONURL and SK2URL. Have a blast!
Click to expand...
Click to collapse
Thanks, OD. I've figured out the file locations and such. I just need to know where you guys edit the .pngs for icons. I've found some icons, but they sucketh. I want them glossy and polished looking like the default icons.
By "where" , I assume you mean what programs do we use?
I use Photoshop do edit my pngs. I think other, cheaper software is available. Don't quote me on that. Photoshop can also be attained other "ways" (cough,cough).
Anyways, you can easily mod any pictures, turn them into anything you want, .png,.tga,.gif,etc. Look around.
Rip Syntaxx said:
Thanks, OD. I've figured out the file locations and such. I just need to know where you guys edit the .pngs for icons. I've found some icons, but they sucketh. I want them glossy and polished looking like the default icons.
Click to expand...
Click to collapse
outerdepth said:
By "where" , I assume you mean what programs do we use?
I use Photoshop do edit my pngs. I think other, cheaper software is available. Don't quote me on that. Photoshop can also be attained other "ways" (cough,cough).
Anyways, you can easily mod any pictures, turn them into anything you want, .png,.tga,.gif,etc. Look around.
Click to expand...
Click to collapse
I understand how to make any pic a .png, .jpg, .gif, etc... It's not the icons that I need, but rather, the program. I'll search for "alternate" ways to get photoshop. lol
Rinku has a pretty good description on how to add CProgs on his blog. It at the bottom of the page.
Thanks guys for all your help and input! I've figured it out, and in the process figured out how to change the small icons in the upper lefthand corner of the panels as well. It's kinda tedious at first, but once you get the hang of it--it's not bad.
Rip Syntaxx said:
Thanks guys for all your help and input! I've figured it out, and in the process figured out how to change the small icons in the upper lefthand corner of the panels as well. It's kinda tedious at first, but once you get the hang of it--it's not bad.
Click to expand...
Click to collapse
For photo edtiting, i use GIMP,,,, it's the same program i used to modify the yahoo weather icons for ORG...... it's free and works just as well as photoshop CS3.
Go here if you want to try. www.gimp.org
pudgedaddy said:
For photo edtiting, i use GIMP,,,, it's the same program i used to modify the yahoo weather icons for ORG...... it's free and works just as well as photoshop CS3.
Go here if you want to try. www.gimp.org
Click to expand...
Click to collapse
Thanks, Pudgemeister. I'll check it out.
pudgedaddy said:
For photo edtiting, i use GIMP,,,, it's the same program i used to modify the yahoo weather icons for ORG...... it's free and works just as well as photoshop CS3.
Go here if you want to try. www.gimp.org
Click to expand...
Click to collapse
I used GIMP for my icons, it was easy and I think they turned out quite nice. Here are a few that I found/made they all have transparent backgrounds. Feel free to use which ever you like.
A few more
Editing Slider Panels
Does anyone know the default setting for this registry key: \HKLM\SOFTWARE\Microsoft\CHome\CMessage\ICONPATHS? I changed it trying to change the condensed icon (upper lefthand corner) for the message notifications panel. Instead, my weather panel's icon was changed. What're the default values for the key? (ex. 2xxx;2xxx)
It is 2201;2201

how to change tf3d highligt color?!

hi there i searched the forum for about a day and realy can't find my answer
can any one plz tell me how can i change the tf3d (touch hd version!) highligt color? (with out changing the original theme indid !)
tanx alot
and for changin the wallpaper in all tabs. can any one make an app to do this in one simple step? or we have to do all that things one by one every time we want to chang the wallpapers?!
tanx in advance
htc's fan said:
can any one plz tell me how can i change the tf3d (touch hd version!) highligt color?
Click to expand...
Click to collapse
There is no 'easy' answer to that question.
For some highlight elements of Windows Mobile (like the phone dialer or call history, and other system screens) the highlight colour is determined by .tsk files... and registry entries.
Go to HKLM\Software\Microsoft\Color and change the values to whatever colour you want. This effects Windows Mobile system colours (including highlights).
You might also need to look at HKCU\Software\Microsoft\Today and change the colour values for whatever task file you selected to use. (HTC Black.tsk, for example).
The green highlight you see in TF3D is controlled by numerous _manila files.
The clock highlight on the Home Page, for example, is made up of 3 _manila files (1 left edge, 1 right edge, 1 middle tiled image). Another 3 _manila files are used for the call history and calendar highlight. Another 3 _manila files control the higlight on other tabs like Settings, or All Program etc.
The keyboard menu highlight, and the Communication Page highlight are all controlled by simple .png images (as these are accessed outside of TF3D.)
So to change the colour of ALL of the highlights on your phone... you have to change many things. Or install a complete theme made by somebody else (and hope they changed ALL of the images... which isn't always the case).
htc's fan said:
and for changin the wallpaper in all tabs. can any one make an app to do this in one simple step? or we have to do all that things one by one every time we want to chang the wallpapers?!
Click to expand...
Click to collapse
If you search the forum, you'll probably find 1 or 2 programs that will let you change the wallpaper with a few clicks... but that function is usually built into a program that does many other things too... and you did say that you didn't really want the theme of your phone changed!
However... editing the _manila file isn't that complicated anyway.... you create your image, import it into the manila file, copy that file to your phone... done!
Using a program (as you asked)... you would create your image, copy it to your phone, launch an app on your phone, click change picture, select your image... done.
Those 2 scenarios aren't that different or really any quicker! The only real advantage to using a program... is that you could change the background image while away from your computer. However if you want to keep 20 different wallpapers on your phone that you can select between... simply import those 20 images into 20 of the same _manila file and store them on your phone like "sports_car_4a087e41_manila" & "hot_babe_4a087e41_manila"... then when you want to change your wallpaper to one of them... simply rename whichever file to "4a087e41_manila" and copy it your your Windows directory... done!
htc's fan said:
and for changin the wallpaper in all tabs. can any one make an app to do this in one simple step? or we have to do all that things one by one every time we want to chang the wallpapers?!
tanx in advance
Click to expand...
Click to collapse
Try this:
http://forum.xda-developers.com/showthread.php?t=479112
Works fine for me.

Tell me About Themes

I am very seriously interested in designing skins or themes or whatever for my blackstone but there really is nowhere to start. There are no definitions for the things people talk about and it makes it super hard to break into this developers world.
But I guess I am looking for a few answers and tips about Themes.
What is the Top Curtain?
What is the Bottom Curtain?
Flip Background? Flip Digit?
Slider?
How to create Icons for the slider and the task bar at the top?
Details like pixels sizes, formats and ect.
Just anything about themes.
Is there a book about this? haha.
I will probably be yelled at for this post and referred to the search function but from what I have seen, there is nothing about this topic. Hmmm, Maybe this is something to add to the Wiki? These are probably the questions developers do not want to answer because this is all probably fudamental and kindegarten but I have to try.
Thanks to anyone who can post some links to guides or some tips and answers.
I feel retarded.
Don't feel retarded.
If someone is retarded it's the Microsoft and HTC programmers who figured that absolutely everyone will just love their default colors / icons / wallpapers, and so they didn't provide any support for making new skins and themes.
To cut the long story short - yes, it can be done, and yes it's kindda frustrating but if you're serious about it and you know how to work with graphics, I'm sure you'll be able to figure it all out.
First of all, you need a Manila editor. There are a few, I recommend CFC GUI and M9EDITOR, the first one being intended only for graphics, and the second one having the same but also additional things too. If you only want to skin the graphics, then you'll be ok just with CFC.
Then go to your device Windows folder and copy over to your PC any file that ends with _manila. There's like a few thousand of them, so it will take a while.
Run CFC GUI and point it to the folder where you copied all those _manila files. It will then show you a list of all the files that contain ANY graphic elements.
Browse it through and you'll soon recognize the familiar graphic items from your device. You will also notice there's a "Save as PNG" option - that will create a transparent PNG in the appropriate resolution, which you can then open up in Photoshop, edit, colorize or whatever you like.
When you're done, you save the PNG, go back to CFC, select "Replace with", load your newly edited PNG, press "CFC Compress" and voila!
The 12345_manila file you just edited has been updated!
Now you take the 12345_manila file, copy it back to Windows folder and restart TF3D.
You will see your new graphic has been integrated into the system.
First of all, Thanks a Ton!
Thousands of them eeeek. Does it take a long time to make a theme?
No problem... I've just started messing around with all of this, so I'm no pro skinner either.
Does it take long... Well, depends on your skills. And also on what kind of extent you want to cover with the skin.
The biggest problem is that most of the graphic files are a complete mess. There's no logical pattern, and they've managed to complicate things beyond reason - for example, some of the most common graphics you see on the screen are actually made out of two or more separate bitmaps, and it's up to you to figure out what is what, etc.
For example, when you click on the flip-clock on your Home screen it glows up in green - well that "green background" is made out of THREE images!
Also, some of the files are coded into Manila format, while others are just plain BMP or PNG or even GIF. Then there's a lot of stuff that's controlled through XML files...
So, when you start with all this, keep your ambitions modest - it's not something you can overcome in one day. But it can also be very rewarding
Took like 50mins to copy over. Wow. I opened it up in CFC and I can not believe anyone who has made a theme. I am trying to figure out a pattern with the file names. Sooo confusing but thanks a ton again for your help. Now I just need to find a graphics editor.
Shival said:
Took like 50mins to copy over. Wow. I opened it up in CFC and I can not believe anyone who has made a theme. I am trying to figure out a pattern with the file names. Sooo confusing but thanks a ton again for your help. Now I just need to find a graphics editor.
Click to expand...
Click to collapse
that is why i am full of respect for these peeps...
Rozenthal said:
Don't feel retarded.
If someone is retarded it's the Microsoft and HTC programmers who figured that absolutely everyone will just love their default colors / icons / wallpapers, and so they didn't provide any support for making new skins and themes.
To cut the long story short - yes, it can be done, and yes it's kindda frustrating but if you're serious about it and you know how to work with graphics, I'm sure you'll be able to figure it all out.
First of all, you need a Manila editor. There are a few, I recommend CFC GUI and M9EDITOR, the first one being intended only for graphics, and the second one having the same but also additional things too. If you only want to skin the graphics, then you'll be ok just with CFC.
Then go to your device Windows folder and copy over to your PC any file that ends with _manila. There's like a few thousand of them, so it will take a while.
Run CFC GUI and point it to the folder where you copied all those _manila files. It will then show you a list of all the files that contain ANY graphic elements.
Browse it through and you'll soon recognize the familiar graphic items from your device. You will also notice there's a "Save as PNG" option - that will create a transparent PNG in the appropriate resolution, which you can then open up in Photoshop, edit, colorize or whatever you like.
When you're done, you save the PNG, go back to CFC, select "Replace with", load your newly edited PNG, press "CFC Compress" and voila!
The 12345_manila file you just edited has been updated!
Now you take the 12345_manila file, copy it back to Windows folder and restart TF3D.
You will see your new graphic has been integrated into the system.
Click to expand...
Click to collapse
Yet more thanks for this post!
Very useful and informative.
(and a refreshing change from the "do a search" unfriendliness that often befalls these forums ).

[TUT] A mini-tutorial on rearranging the Manila Home Screen

Rearranging the Manila Home Screen​
What do I need to know?
Manila uses few types of files: qtc, xml, mode9 and lua. First one is for graphics, second usually for different languages (although not only) and the two last ones are the ones we are interested in. Mode9 files contain information on position, visibility and other properties of almost every element on Manila tabs. Lua files contain different functions, used for animations, updating info and so on.
For editing the Home Screen we need the mode9 file - 1c684cd8_manila and the lua script - 25d04412_manila. You can find these files (from each Manila, starting from 1.0 and ending on 2.5) on this forum.
What tools do I need?
Editing mode9 files is quiet easy. You just have to run m9editor, open the file, make the changes you want and save it. Changing stuff in lua scripts is a bit more complicated, as you have to decompile it. Shorter scripts are easily decompilated by luadec, but some longer ones require us to correct errors. Fortunately, the lua script we have to change is easily decompilated (though there can be a problem with the if condition). To do this follow these points:
- copy luadec.exe and luac.exe to the folder you where you have the lua script (let's say it's c:\compacthome\mod\)
- press Windows Logo + R (or Start > Run) and type cmd
- go to the folder containing the lua script (in this case it's cd \compacthome\mod\)
- type luadec script_name > script_name.txt - where script_name is the script you want to decompile (for example 25d04412_manila) and script_name.txt is the name of the output file, which we will edit
- in case of errors you have to correct them (look for the lua decompiling tutorial by sztupy)
- once you have the script decompiled you don't need to do it again.
- open the output file and change whatever you want
- to compile the file just type luac -o script_name script_name.txt, where script_name is the file we want to have the script_name.txt compiled
What can I change?
When you open the mode9 file we want to edit, expand the tree and you'll see many sections called 'Object'. Below them there are few lines called 'Property'. What you can easily change is:
- Position - just change the value of X and Y (center position (X=0, Y=0) and axis are different for most of the objects - you have to test this)
- Visibility - True or False (sometimes you may have to change the size of a image to 0x0, so that it won't show never)
- Font
- Font Size
- Color of text in RGB format - if Property is not available, add it
In the 25d04412_manila script you can change positions of many objects in both portrait and landscape mode.
- TabsLeft - left part of the clock (animated)
- TabsRight - right part of the clock (animated)
- clock_tabs - background of the clock (pile of tabs)
- alarm_clock - alarm info and date
- NotifiCamera3D - notifications & appointments
- NotificationShiftY - shifting of appointments when changing to small clock
To change the position just modify the first two parameters of Vector3(X, Y, Z) - both CameraPosition.value and LookAtPosition.value.
How to save and test the changes in a fast way?
Open a cab creator (for example WinCE Cab Manager) and add the files you changed to /Windows. Save the cab, copy it to your device, install and reboot Manila. You can also copy manually the file, but I prefer the first way, because in case of any problems you can easily uninstall the cab and get the default Home Screen.
How to get the Home Screen working with Background4AllTabs?
Just open the 1c684cd8_manila file by m9editor, look for 'HomeBackground' and delete the whole paragraph which contains it (from <Object>Type="Group" to the next <Object>Type="Group").
- - -​
If you have any suggestions, propositions or ideas, please write them in this thread, I'll try to complete this tutorial, so it will be useful for everyone. Thanks!
i cannot come up with suggestions, but that tutorial is very nice on your side!
Although not actually about the home screen arrangement. I do think we need the information on how to patch the EXE for weather and especially non-HTC devices to be made public. The few people that know how to do it don't seem to want to SHARE that knowledge, which is damned frustrating!
Kamill, what an excellent idea. I'm looking forward to your tutorial. I wonder will it be for Manila 2.0?
Here are some ideas:
Change touch flo colour
Appointments for at least one week
Linking big clock with another application (similar to Ssmaho)
Changing soft keys names/applications
Changing font sizes/types
Changing date formats on appointments
I hope this doesn't make it too difficult (I think the second one is though for some Manila versions!)
UPDATE in first post - an early version of the mini-tutorial.
FloatingFatMan, unfortunately I don't know how to do it...
mitsi, thanks, I'll work on that.
Kamill, My question is what needs to be changed to get appointments in dates after tomorrow to appear? Do I need to edit both the mode9 and the lua script? Or is it just one of those? I'm willing to get my hands dirty to fix it.
The easiest way is to get the files from hallatore's mod for Manila 2.0 and compare them to the original. There are mainly 3 differences, you'll find them for sure. AFAIR all you have to change is in one script, you have to add an option to display the date, change the place from where appointments are being taken (poomappointments(TAB_Calendar) instead of poomappointments(TAB_Home)) and change the number of appointments in the for loop.
Hmm. Well I changed the TAB_Calendar and added the option to to display date. Those were easy. Finding the loop is harder. I forced A loop to go 5 times and I got 5 calendar events, but the ones past tomorrow were the default ones in the mode9 ("Review design comp (Dan's office)"). I did it in the InitializeFullAnimation function just below this if statement:
Code:
if l_15_15 > 5 then
l_15_15 = 5
end
So those items are not being updated from the calendar. Any ideas? Am I looking in the wrong loop?
Anyway you can post hallatore's mod de-compiled? I think I have the original, but when I use m9editor the lua has a lot of decompiled errors.
Here you go. Are you doing this on the Manila 2.1? I tried so many things to get this working, but with no success
how to change home tab
Hi, I have read all the posts here and in some other threads related, and I'm still confused
I did try to install the cabs posted, and it totally messed my home tab, so I had to hard reset every time (because uninstalling didn't fix it up).
All I want to have is this:
1. move the alarm notification on the upper-right corner (to cover or remove the ATT logo)
2. make the Call History to auto-hide if there is no missed call (or to delete it, if it is easier)
3. have more appointments visible (2-3) with the big clock, and to be able to flip the clock upwards in order to have even more appointments visible
4. when I click on the appointment, to open the Calendar (this is already possible, and I'd like to remain this way)
I apologize if this is a silly question: is this possible to be done only by editing some manila files, and if so, which ones and what should I modify?
I opened some manila files (e.g. 1c684cd8_manila) using notepad and m9editor.exe, and, honestly, I had no clue as to what should I do
I am sure that you guys know this stuff already, and it is very easy for you. If it's not complicated to explain it to me, please help me!
thank you very much
Kamill said:
Here you go. Are you doing this on the Manila 2.1? I tried so many things to get this working, but with no success
Click to expand...
Click to collapse
Thanks. I am trying for Manila 2.1. There's gotta be a way.
tatarasi said:
Hi, I have read all the posts here and in some other threads related, and I'm still confused
I did try to install the cabs posted, and it totally messed my home tab, so I had to hard reset every time (because uninstalling didn't fix it up).
All I want to have is this:
1. move the alarm notification on the upper-right corner (to cover or remove the ATT logo)
2. make the Call History to auto-hide if there is no missed call (or to delete it, if it is easier)
3. have more appointments visible (2-3) with the big clock, and to be able to flip the clock upwards in order to have even more appointments visible
4. when I click on the appointment, to open the Calendar (this is already possible, and I'd like to remain this way)
I apologize if this is a silly question: is this possible to be done only by editing some manila files, and if so, which ones and what should I modify?
I opened some manila files (e.g. 1c684cd8_manila) using notepad and m9editor.exe, and, honestly, I had no clue as to what should I do
I am sure that you guys know this stuff already, and it is very easy for you. If it's not complicated to explain it to me, please help me!
thank you very much
Click to expand...
Click to collapse
Here is the solution to all 4 requests, but it is for Manila 2.0, so be careful. Back-up first just in case. Your screen will then look similar to the one shown.
Been trying...
I've been trying for some time now to get more than today's and tomorrow's appointment's displayed in manila 2.1. I added in the code that Hallatore added (can be found in stupy's lua thread) but there seems to be something limiting the amount of days shown ahead (I hope is not limited by the manila.exe, but I think not).
As additional info, the lua file that use to be embedded in the Home.mode9 isn't any more and is named 53cc1e4f_manila for 2.1 manila and 652ae0f4_manila for 2.5 manila,
12
mitsi said:
Here is the solution to all 4 requests, but it is for Manila 2.0, so be careful. Back-up first just in case. Your screen will then look similar to the one shown.
Click to expand...
Click to collapse
This is exactly what I'm after.
Unfortunately, I tried that alternative and, again, it totally messes my TFLO, and I had to hard reset again.
What do you mean by Manila 2.0, is this the TFLO version (in Settings, I see that I have ver. 3.0 build 29946)?
thank you
Change Home tab display
Hi, thank you very much for your interest and trying to give me solutions for my request. It is amazing how people from different corners of the world are connecting and helping each other.
I presume that the file to work with is 1c684cd8_manila.
I opened that with m9editor 3.3.0.1. It's a lot of info there
Could you guys be so kind and give some clues as to what should I look for in order to change:
- the alarm notification - to move it on the upper-right corner
- the carrier logo - to delete it
- the Call History - to delete it
- the Appointments - to have at least 2-3 shown
Also, important clues as to what NOT to touch, in order to
- continue to be able to flip over the big clock
- continue to be able to open the Calendar when click on the appointment
thank you again
tatarasi said:
- the alarm notification - to move it on the upper-right corner
Click to expand...
Click to collapse
Change the X and Y in the 'Position' Property of these objects: AlarmClockOn, AlarmClockOff, AlarmTime.
tatarasi said:
- the carrier logo - to delete it
Click to expand...
Click to collapse
To the object 'OperatorLogo' add a property called 'Visibility' and change its value to False - if it won't work change it's height to 0 in the 'Size' property.
tatarasi said:
- the Call History - to delete it
Click to expand...
Click to collapse
The same as above, objects: MissedCall_SBar1, MissedCall_SBar2, MissedCallIcon, MissedCallText.
tatarasi said:
- the Appointments - to have at least 2-3 shown
Click to expand...
Click to collapse
You need to decompile the 53cc1e4f_manila script and find l_15_0.MaxShowCount and change the value of it to the desired one.
Kamill said:
You need to decompile the 53cc1e4f_manila script and find l_15_0.MaxShowCount and change the value of it to the desired one.
Click to expand...
Click to collapse
If only it was that easy... I've been trying all kinds stuff including what you suggest above. I have decompiled the 53cc1e4f_manila I'll attach it here (it's the one from yozgatg's r1.5),
12
I mean you CAN change the number of appointments, but in a range of 0 to 6 (5 with big clock). I've tried to get more appointments shown, but I failed...
Kamill said:
Change the X and Y in the 'Position' Property of these objects: AlarmClockOn, AlarmClockOff, AlarmTime.
To the object 'OperatorLogo' add a property called 'Visibility' and change its value to False - if it won't work change it's height to 0 in the 'Size' property.
The same as above, objects: MissedCall_SBar1, MissedCall_SBar2, MissedCallIcon, MissedCallText.
You need to decompile the 53cc1e4f_manila script and find l_15_0.MaxShowCount and change the value of it to the desired one.
Click to expand...
Click to collapse
Hi, Kamill,
Apologize for double posting, I am growing impatient feeling that I am so close to a solution
Regarding the Manila, I checked where you told me to, and I found out that I have TFLO 3D 1.2.37896.1_1813.6. Thank you.
Thank you for your advices, I already tried to remove the logo
- first, I added the <Property> Name=Visibility Value="False" - did not work
- then, I changed the Height=0 - still ATT was there
- lastly, I deleted the entire Object GLESSprite2D (which was above the "OperatorLogo" property - still no result
What do you think I am doing wrong?
Speaking of the number of appointments, I amazingly discovered that I do not have 53cc1e4f_manila file. What do you think that means?
thank you very much, again
Manila 1 is a bit different from 2.0 or 2.1, the 53cc1e4f_manila script is embedded in the 1c684cd8_manila mode9 file (one of those at the beginning).
AFAIK you can replace the logo file with a blank one (don't ask me which file is it, I don't know ). Or you can try to add a 'Position' property and move it out of the sight (but it may come back in some situations) - though I do not guarantee it'll work.
I hope you'll success in modifying the Manila 1 homescreen, I guess there is still a couple of people who use that version of TF3D.

[24/08/2010] first development project 4 on 1 row

intro: I'm a bachelor student who has a little knowledge of programming.
For the first time i try to make a simple game that i already wrote in java work in vb.
I'm planning to make this a full working game that I can place on the market place for free.
I already have the idea how to make the AI to play 1 vs PPC
I wrote it for a WVGA screen but its completely dynamic so it should work on other screen sizes.
Only when you change the orientation the text will not be visible (need to think where i'm gonna place it)
pls feel free to give input on the project.
I uploaded the whole vb net directory so its open for everybody
(Im still a bit strugling with a cab file that has links in it
if you instal it, it should be visible in the programfiles dir)
--edited 24/08
-thanks to Gaz25 the refresh problem is soved
-the 4 on a row detection algorithm is completed
Hi, I had a look at your code and fixed your flicker problem.
Basically, when you do you own drawing on a control like a panel you need to take control of painting the background as when a control is redrawn it paints the background first and then anything else on top like text, images etc...
The best thing to do is create a custom control. Then you can override the OnBackgroundPaint event and say do nothing.
Then override the OnPaint event and here is another trick.
In the OnPaint event, create a bitmap. This will be the 'backbuffer' which you will do all your drawing on. Then when you have done all your drawing on the backbuffer, you draw the backbuffer to the screen.
I have included your solution with my modification which I hope make more sense .
If you need more explanation then let me know and I will go into more detail.
Gaz25 said:
Hi, I had a look at your code and fixed your flicker problem.
Basically, when you do you own drawing on a control like a panel you need to take control of painting the background as when a control is redrawn it paints the background first and then anything else on top like text, images etc...
The best thing to do is create a custom control. Then you can override the OnBackgroundPaint event and say do nothing.
Then override the OnPaint event and here is another trick.
In the OnPaint event, create a bitmap. This will be the 'backbuffer' which you will do all your drawing on. Then when you have done all your drawing on the backbuffer, you draw the backbuffer to the screen.
I have included your solution with my modification which I hope make more sense .
If you need more explanation then let me know and I will go into more detail.
Click to expand...
Click to collapse
i will look at it monday when i'm back from a festival
thanks in advance.
sended from x1
Thank you very mutch,
i just tested it and it works perfect.
I will try to make it better in the following weeks.
Only one thing that you changed in my code that wasn't correct "speler = 0" (on load, needs to be 1 or 2) (speler = player)
I also found an error in my own algortim for the 4 on a row detection
"teller1 = teller2 = 0" ( gave me a -1 on teller1)

Categories

Resources