This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (int i = 0; i < NUM_TARGET; i++) | |
{ | |
tempHead=head; | |
while(tempHead != NULL )//刪頭 | |
{ | |
if (tempHead->fby > 40 || enemy[i].Hitting(tempHead->fbx, tempHead->fby)) | |
{ | |
if(tempHead->next){ | |
tempHead->next->prior = tempHead->prior; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Application | |
x:Class="App2.App" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="using:App2" | |
RequestedTheme="Light"> | |
<Application.Resources> | |
<ResourceDictionary> | |
<ResourceDictionary.MergedDictionaries> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override void OnSearchActivated(SearchActivatedEventArgs args) | |
{ | |
base.OnSearchActivated(args); | |
Frame rootFrame = new Frame(); | |
rootFrame.Navigate(typeof(MainPage), args.QueryText); | |
Window.Current.Content = rootFrame; | |
Window.Current.Activate(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// 在此頁面即將顯示在框架中時叫用。 | |
/// </summary> | |
/// <param name="e">描述如何到達此頁面的事件資料。Parameter | |
/// 屬性通常用來設定頁面。</param> | |
protected override void OnNavigatedTo(NavigationEventArgs e) | |
{ | |
this.SearchInput.Text = e.Parameter.ToString(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal void OnQuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) | |
{ | |
this.SearchInput.Text = args.QueryText; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public MainPage() | |
{ | |
this.InitializeComponent(); | |
SettingsPane.GetForCurrentView().CommandsRequested += MainPage_CommandsRequested; | |
} | |
void MainPage_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args) | |
{ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void MainPage_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args) | |
{ | |
SettingsCommand urlCommand = new SettingsCommand("urlCommand", "首頁", onSettingsCommand); | |
args.Request.ApplicationCommands.Add(urlCommand); | |
SettingsCommand urlCommand_2 = new SettingsCommand("urlCommand_2", "Bing", onSettingsCommand); | |
args.Request.ApplicationCommands.Add(urlCommand_2); | |
} | |
void onSettingsCommand(IUICommand command) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<common:LayoutAwarePage | |
x:Name="pageRoot" | |
x:Class="App2.SettingPage" | |
DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="using:App2" | |
xmlns:common="using:App2.Common" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int ContentAnimationOffset = 100; | |
public SettingPage() | |
{ | |
this.InitializeComponent(); | |
FlyoutContent.Transitions = new Windows.UI.Xaml.Media.Animation.TransitionCollection(); | |
FlyoutContent.Transitions.Add(new Windows.UI.Xaml.Media.Animation.EntranceThemeTransition() | |
{ | |
FromHorizontalOffset = (SettingsPane.Edge == SettingsEdgeLocation.Right) ? ContentAnimationOffset : (ContentAnimationOffset * -1) | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public MainPage() | |
{ | |
this.InitializeComponent(); | |
SettingsPane.GetForCurrentView().CommandsRequested += MainPage_CommandsRequested; | |
} | |
void MainPage_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args) | |
{ | |
SettingsCommand urlCommand = new SettingsCommand("urlCommand", "詳細設定", onSettingsCommand); | |
args.Request.ApplicationCommands.Add(urlCommand); |