FORUMS

[UTILITY] Lua 5.1 tools: compiler, decompiler, snippets & extendable lua.dll with SDK

1,061 posts
Thanks Meter: 879
 
Post Reply Email Thread
24th March 2009, 03:46 AM |#291  
smotrs's Avatar
Senior Member
Flag So. Calif.
Thanks Meter: 0
 
More
Quote:
Originally Posted by sztupy

Advertisement

I've made some tools that will display mode9 files on the computer.
Topic

I've also set up a wiki with a lot of autogenerated content regarding mode9 development (and maybe lua later on):
http://msdn.winmo.sztupy.hu/

Nice, very very nice.
24th March 2009, 04:23 AM |#292  
mun_rus's Avatar
Senior Member
Thanks Meter: 0
 
More
this is an example of russian letter picker

Code:
if string.lower(_application.Store:GetStringValue(Lifetime_Permanent, "Locale")) == "ru-ru" then
   LetterCount = 33
   LetterOffset = 1040
   LetterFontSize = 16
else
   LetterCount = 26
   LetterOffset = 65
   LetterFontSize = 20
end

...
LetterPicker.ItemCreated = function(l_3_0, l_3_1, l_3_2)   l_3_2.Namespace:FindName("Letter").onRelease:connect(l_3_0.HandleMouseReleaseInList, l_3_0)   l_3_2.Namespace:FindName("Letter").onReleaseOutside:connect(l_3_0.HandleMouseReleaseInList, l_3_0)   l_3_2.Namespace:FindName("Letter").onPress:connect(l_3_0.HandleMousePressInList, l_3_0)
l_3_2.Namespace:FindName("Letter").onRollOver:connect(l_3_0.HandleRollOver, l_3_0)
l_3_2.Namespace:FindName("Letter").String = string.char(l_3_1 + LetterOffset)
l_3_2.Namespace:FindName("Letter").FontSize = l_3_0.LetterFontSize
l_3_2.Namespace:FindName("Letter").Size.height = l_3_0.itemhight
l_3_2.Tag = l_3_1
end
....
LetterPicker.HandleRollOver = function(l_5_0, l_5_1)
   l_5_0.ListViewInstance:GetGenerator():SelectObject(l_5_1)
   l_5_0:SetLetter(l_5_1.String)
end


LetterPicker.HandleMousePressInList = function(l_6_0, l_6_1, l_6_2)
   trace("[LetterPicker] : HandleMousePressInList")
   l_6_0.ListViewInstance:GetGenerator():SelectObject(l_6_1)
   l_6_2.value = true
   l_6_0:SetLetter(l_6_1.String)
   l_6_0:ShowCharacterDialog(true)
   l_6_0.ListViewInstance:GetLayout().SelectionNode.Opacity.value = 100
end

LetterPicker.SetLetter = function(l_9_0, l_9_1)
   l_9_0.Letter_Char.String = l_9_1
end

LetterPicker.Reset = function(l_10_0)
   trace("[LetterPicker] : Reset")
   l_10_0.ListViewInstance:GetGenerator().SelectedIndex = 0
end
.....
I got a russian letters line in contacts and changed all offsets to 1040 but it's dont work for me either.
I think we missed smth important but unnoticable for 1st view
24th March 2009, 07:32 AM |#293  
avimak's Avatar
Senior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by mun_rus

this is an example of russian letter picker

Code:
if string.lower(_application.Store:GetStringValue(Lifetime_Permanent, "Locale")) == "ru-ru" then
   LetterCount = 33
   LetterOffset = 1040
   LetterFontSize = 16
else
   LetterCount = 26
   LetterOffset = 65
   LetterFontSize = 20
end

...
LetterPicker.ItemCreated = function(l_3_0, l_3_1, l_3_2)   l_3_2.Namespace:FindName("Letter").onRelease:connect(l_3_0.HandleMouseReleaseInList, l_3_0)   l_3_2.Namespace:FindName("Letter").onReleaseOutside:connect(l_3_0.HandleMouseReleaseInList, l_3_0)   l_3_2.Namespace:FindName("Letter").onPress:connect(l_3_0.HandleMousePressInList, l_3_0)
l_3_2.Namespace:FindName("Letter").onRollOver:connect(l_3_0.HandleRollOver, l_3_0)
l_3_2.Namespace:FindName("Letter").String = string.char(l_3_1 + LetterOffset)
l_3_2.Namespace:FindName("Letter").FontSize = l_3_0.LetterFontSize
l_3_2.Namespace:FindName("Letter").Size.height = l_3_0.itemhight
l_3_2.Tag = l_3_1
end
....
LetterPicker.HandleRollOver = function(l_5_0, l_5_1)
   l_5_0.ListViewInstance:GetGenerator():SelectObject(l_5_1)
   l_5_0:SetLetter(l_5_1.String)
end


LetterPicker.HandleMousePressInList = function(l_6_0, l_6_1, l_6_2)
   trace("[LetterPicker] : HandleMousePressInList")
   l_6_0.ListViewInstance:GetGenerator():SelectObject(l_6_1)
   l_6_2.value = true
   l_6_0:SetLetter(l_6_1.String)
   l_6_0:ShowCharacterDialog(true)
   l_6_0.ListViewInstance:GetLayout().SelectionNode.Opacity.value = 100
end

LetterPicker.SetLetter = function(l_9_0, l_9_1)
   l_9_0.Letter_Char.String = l_9_1
end

LetterPicker.Reset = function(l_10_0)
   trace("[LetterPicker] : Reset")
   l_10_0.ListViewInstance:GetGenerator().SelectedIndex = 0
end
.....
I got a russian letters line in contacts and changed all offsets to 1040 but it's dont work for me either.
I think we missed smth important but unnoticable for 1st view

maybe if we had a way to skip the "GetLetterIndex" and create a different way to check the first letters in contacts it would work, as sztupy just wrote to me.
do you have any Idea?
24th March 2009, 04:27 PM |#294  
sztupy's Avatar
OP Inactive Recognized Developer
Flag London
Thanks Meter: 879
 
Donate to Me
More
Quote:
Originally Posted by mun_rus

this is an example of russian letter picker

And what if you use lowercase letters (decimal offset 1072 for cyrillic)? Just a guess
24th March 2009, 08:33 PM |#295  
avimak's Avatar
Senior Member
Thanks Meter: 0
 
More
something else, mun_rus, did you change this + 65 value in the rest of the files?
I got the control of the slider - just read it above - but it doesn't recognize my Hebrew letter (the unicode part).
24th March 2009, 11:50 PM |#296  
Senior Member
Thanks Meter: 5
 
More
Hi, I hope this is the right place to ask. Have't found a good lua thread yet.

Just started playing around with the lua and mode9 files.
Pretty easy syntax, but the data sure is spread across alot of files

So far i have made this no call history in today tab mod.

I've been wondering about a couple of things.
Q: How can I get the Notifications (call history, appointments) higher up?

Q: where can I edit the 3D clocks size?

Q: Where does the 3D render of the clock come from? (The one that has the animation, can't find it in the source.

I've edited every single setting in home.mode9 and I got the clock to get smaller, but the overlay animated (3D?) clock still has the same size. Is it's size set by the clock's image-files maybe?

I've also played around with the lua that sets most of the stuff in home.mode9. but there are't alot of settings there to change.
24th March 2009, 11:55 PM |#297  
avimak's Avatar
Senior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by hallatore

Hi, I hope this is the right place to ask. Have't found a good lua thread yet.

Just started playing around with the lua and mode9 files.
Pretty easy syntax, but the data sure is spread across alot of files

So far i have made this no call history in today tab mod.

I've been wondering about a couple of things.
Q: How can I get the Notifications (call history, appointments) higher up?

Q: where can I edit the 3D clocks size?

Q: Where does the 3D render of the clock come from? (The one that has the animation, can't find it in the source.

I've edited every single setting in home.mode9 and I got the clock to get smaller, but the overlay animated (3D?) clock still has the same size. Is it's size set by the clock's image-files maybe?

I've also played around with the lua that sets most of the stuff in home.mode9. but there are't alot of settings there to change.

If you want to play with the clock size, I believe you'll need to play with the PNG files too..
look through "mode9 editor" to find out which ones are the clock image files...

BTW, can you help us with the contact scroll bar?
25th March 2009, 12:23 AM |#298  
Senior Member
Thanks Meter: 5
 
More
Quote:
Originally Posted by avimak

BTW, can you help us with the contact scroll bar?

It's still scrolling too far?

I will try, my first day with mode9 and lua stuff today. Need some sleep before school, and then maybe i get some time tomorrow


PS: I see there are alot of .lua files that still contain the 480x800 sizes. might affect the child objects?

Examples:
- layoutinfo.lua
- manila.lua
25th March 2009, 12:27 AM |#299  
Senior Member
Thanks Meter: 5
 
More
I have no idea how to cook the whole manila, but why not try this.

Use Visual studio to replace "800 and "-800 with "640 and "-640 in all the decompiled lua files?

I just did a quick search and I found 33 entries.
Ofcourse there are alot of entries like 788 etc, those are a bit worse to find.
25th March 2009, 12:37 AM |#300  
avimak's Avatar
Senior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by hallatore

It's still scrolling too far?

I will try, my first day with mode9 and lua stuff today. Need some sleep before school, and then maybe i get some time tomorrow


PS: I see there are alot of .lua files that still contain the 480x800 sizes. might affect the child objects?

Examples:
- layoutinfo.lua
- manila.lua

I'm not sure you understood my request
Just read from 263 message, the whole conversation between me, sztupy and mun_rus...

thanks
25th March 2009, 02:51 AM |#301  
mun_rus's Avatar
Senior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by sztupy

And what if you use lowercase letters (decimal offset 1072 for cyrillic)? Just a guess

No need to do that already tried. Just got lowercase letters in my scroll list.
Quote:

something else, mun_rus, did you change this + 65 value in the rest of the files?

yeah) i think our problem is with getting selected index
Post Reply Subscribe to Thread

Tags
lua, manila, mod, tf3d, touchflo

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes