File tree 6 files changed +7
-4
lines changed
6 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ sub init()
7
7
8
8
m .llCampaign = m .top .findNode ("llCampaign" )
9
9
m .lNoItems = m .top .findNode ("lNoItems" )
10
+ m .lVersion = m .top .findNode ("lVersion" )
10
11
11
12
m .llCampaign .observeField ("itemSelected" , "OnItemSelected" )
12
13
m .top .observeField ("visible" , "onVisibleChange" )
@@ -24,6 +25,9 @@ sub onInitializeChanged(event as dynamic)
24
25
m .namiCampaignManager = m .scene .namiManager .namiCampaignManager
25
26
OnCampaignListReceived ()
26
27
end if
28
+ if m .scene .namiManager <> invalid and m .scene .namiManager .namiSDKVersion <> invalid
29
+ m .lVersion .text = "NAMI SDK Version : " + m .scene .namiManager .namiSDKVersion
30
+ end if
27
31
end sub
28
32
29
33
sub onVisibleChange (event as dynamic )
Original file line number Diff line number Diff line change 19
19
<Poster width =" 50" height =" 50" loadWidth =" 50" loadHeight =" 50" uri =" pkg:/images/star_button.png" translation =" [100,0]" />
20
20
<Label text =" to refresh" height =" 50" vertAlign =" center" translation =" [160,0]" />
21
21
</Group >
22
+ <Label id =" lVersion" font = " font:SmallestSystemFont" horizAlign =" left" vertAlign =" center" translation =" [50,1020]" />
22
23
</children >
23
24
</component >
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ sub setupControls()
11
11
print "Mainscene : setupControls"
12
12
createBusySpinner ()
13
13
m .lError = m .top .findNode ("lError" )
14
- m .lVersion = m .top .findNode ("lVersion" )
15
14
m .contentViewControl = m .top .findNode ("contentViewControl" )
16
15
InitializeNamiSDK ()
17
16
end sub
@@ -36,7 +35,6 @@ sub showContentView(isReady as boolean)
36
35
m .contentViewControl .initialize = true
37
36
m .contentViewControl .visible = true
38
37
39
- m .lVersion .text = "NAMI SDK Version : " + m .namiManager .namiSDKVersion
40
38
else
41
39
m .lError .visible = true
42
40
end if
Original file line number Diff line number Diff line change 18
18
<Label id =" lError" text =" SDK Initialization failed." translation =" [0,490]" horizAlign =" center" vertAlign =" center" width =" 1920" height =" 100" visible =" false" />
19
19
<ContentView id =" contentViewControl" visible =" false" translation =" [0, 0]" />
20
20
<BusySpinner id =" loader" translation =" [860,420]" control =" start" clockwise =" true" spinInterval =" 0.8" />
21
- <Label id =" lVersion" font = " font:SmallestSystemFont" horizAlign =" left" vertAlign =" center" translation =" [50,1020]" />
22
21
</children >
23
22
</component >
Original file line number Diff line number Diff line change @@ -171,4 +171,5 @@ end function
171
171
172
172
function OnPurchaseResultChanged (purchase )
173
173
print "NamiDataSource : In OnPurchaseResultChanged : " purchase
174
+ print "NamiDataSource : transaction details in purchase : " purchase .transaction
174
175
end function
Original file line number Diff line number Diff line change 1
1
title=Nami SDK Demo
2
2
major_version=2
3
3
minor_version=0
4
- build_version=101320230
4
+ build_version=110120230
5
5
6
6
mm_icon_focus_hd=pkg:/images/icon_hd.png
7
7
mm_icon_side_hd=pkg:/images/icon_hd.png
You can’t perform that action at this time.
0 commit comments