diff options
Diffstat (limited to 'Doc/doxygen/html/_player_dlg_8cpp_source.html')
-rw-r--r-- | Doc/doxygen/html/_player_dlg_8cpp_source.html | 506 |
1 files changed, 506 insertions, 0 deletions
diff --git a/Doc/doxygen/html/_player_dlg_8cpp_source.html b/Doc/doxygen/html/_player_dlg_8cpp_source.html new file mode 100644 index 0000000..924b861 --- /dev/null +++ b/Doc/doxygen/html/_player_dlg_8cpp_source.html @@ -0,0 +1,506 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<title>Starshatter_Open: D:/SRC/StarshatterSVN/Stars45/PlayerDlg.cpp Source File</title> +<link href="tabs.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="jquery.js"></script> +<script type="text/javascript" src="dynsections.js"></script> +<link href="navtree.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="resize.js"></script> +<script type="text/javascript" src="navtree.js"></script> +<script type="text/javascript"> + $(document).ready(initResizable); +</script> +<link href="search/search.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="search/search.js"></script> +<script type="text/javascript"> + $(document).ready(function() { searchBox.OnSelectItem(0); }); +</script> +<link href="doxygen.css" rel="stylesheet" type="text/css" /> +</head> +<body> +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <td style="padding-left: 0.5em;"> + <div id="projectname">Starshatter_Open + </div> + <div id="projectbrief">Open source Starshatter engine</div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.1 --> +<script type="text/javascript"> +var searchBox = new SearchBox("searchBox", "search",false,'Search'); +</script> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + <li> + <div id="MSearchBox" class="MSearchBoxInactive"> + <span class="left"> + <img id="MSearchSelect" src="search/mag_sel.png" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + alt=""/> + <input type="text" id="MSearchField" value="Search" accesskey="S" + onfocus="searchBox.OnSearchFieldFocus(true)" + onblur="searchBox.OnSearchFieldFocus(false)" + onkeyup="searchBox.OnSearchFieldChange(event)"/> + </span><span class="right"> + <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> + </span> + </div> + </li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +</div><!-- top --> +<div id="side-nav" class="ui-resizable side-nav-resizable"> + <div id="nav-tree"> + <div id="nav-tree-contents"> + </div> + </div> + <div id="splitbar" style="-moz-user-select:none;" + class="ui-resizable-handle"> + </div> +</div> +<script type="text/javascript"> +$(document).ready(function(){initNavTree('_player_dlg_8cpp.html','');}); +</script> +<div id="doc-content"> +<!-- window showing the filter options --> +<div id="MSearchSelectWindow" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + onkeydown="return searchBox.OnSearchSelectKey(event)"> +<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Macros</a></div> + +<!-- iframe showing the search results (closed by default) --> +<div id="MSearchResultsWindow"> +<iframe src="javascript:void(0)" frameborder="0" + name="MSearchResults" id="MSearchResults"> +</iframe> +</div> + +<div class="header"> + <div class="headertitle"> +<div class="title">PlayerDlg.cpp</div> </div> +</div><!--header--> +<div class="contents"> +<a href="_player_dlg_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/* Project Starshatter 5.0</span></div> +<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> Destroyer Studios LLC</span></div> +<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> Copyright © 1997-2007. All Rights Reserved.</span></div> +<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"></span></div> +<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> SUBSYSTEM: Stars.exe</span></div> +<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> FILE: PlayerDlg.cpp</span></div> +<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> AUTHOR: John DiCamillo</span></div> +<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"></span></div> +<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span></div> +<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> OVERVIEW</span></div> +<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> ========</span></div> +<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> Main Menu Dialog Active Window class</span></div> +<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">*/</span></div> +<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div> +<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include "<a class="code" href="_mem_debug_8h.html">MemDebug.h</a>"</span></div> +<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include "<a class="code" href="_player_dlg_8h.html">PlayerDlg.h</a>"</span></div> +<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="_award_show_dlg_8h.html">AwardShowDlg.h</a>"</span></div> +<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="_confirm_dlg_8h.html">ConfirmDlg.h</a>"</span></div> +<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="_menu_screen_8h.html">MenuScreen.h</a>"</span></div> +<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="_player_8h.html">Player.h</a>"</span></div> +<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div> +<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "<a class="code" href="_format_util_8h.html">FormatUtil.h</a>"</span></div> +<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div> +<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="_game_8h.html">Game.h</a>"</span></div> +<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "<a class="code" href="_data_loader_8h.html">DataLoader.h</a>"</span></div> +<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="_button_8h.html">Button.h</a>"</span></div> +<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="_list_box_8h.html">ListBox.h</a>"</span></div> +<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "<a class="code" href="_edit_box_8h.html">EditBox.h</a>"</span></div> +<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "<a class="code" href="_image_box_8h.html">ImageBox.h</a>"</span></div> +<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include "<a class="code" href="_slider_8h.html">Slider.h</a>"</span></div> +<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "<a class="code" href="_video_8h.html">Video.h</a>"</span></div> +<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "<a class="code" href="_keyboard_8h.html">Keyboard.h</a>"</span></div> +<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "<a class="code" href="_machine_info_8h.html">MachineInfo.h</a>"</span></div> +<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div> +<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment">// DECLARE MAPPING FUNCTIONS:</span></div> +<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div> +<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <a class="code" href="_active_window_8h.html#acf5ab5423841bdc2aaaf6da32a059111">DEF_MAP_CLIENT</a>(<a class="code" href="class_player_dlg.html">PlayerDlg</a>, OnApply);</div> +<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <a class="code" href="_active_window_8h.html#acf5ab5423841bdc2aaaf6da32a059111">DEF_MAP_CLIENT</a>(<a class="code" href="class_player_dlg.html">PlayerDlg</a>, OnCancel);</div> +<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <a class="code" href="_active_window_8h.html#acf5ab5423841bdc2aaaf6da32a059111">DEF_MAP_CLIENT</a>(<a class="code" href="class_player_dlg.html">PlayerDlg</a>, OnSelectPlayer);</div> +<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <a class="code" href="_active_window_8h.html#acf5ab5423841bdc2aaaf6da32a059111">DEF_MAP_CLIENT</a>(<a class="code" href="class_player_dlg.html">PlayerDlg</a>, OnAdd);</div> +<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <a class="code" href="_active_window_8h.html#acf5ab5423841bdc2aaaf6da32a059111">DEF_MAP_CLIENT</a>(<a class="code" href="class_player_dlg.html">PlayerDlg</a>, OnDel);</div> +<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <a class="code" href="_active_window_8h.html#acf5ab5423841bdc2aaaf6da32a059111">DEF_MAP_CLIENT</a>(<a class="code" href="class_player_dlg.html">PlayerDlg</a>, OnDelConfirm);</div> +<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <a class="code" href="_active_window_8h.html#acf5ab5423841bdc2aaaf6da32a059111">DEF_MAP_CLIENT</a>(<a class="code" href="class_player_dlg.html">PlayerDlg</a>, OnRank);</div> +<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <a class="code" href="_active_window_8h.html#acf5ab5423841bdc2aaaf6da32a059111">DEF_MAP_CLIENT</a>(<a class="code" href="class_player_dlg.html">PlayerDlg</a>, OnMedal);</div> +<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div> +<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div> +<div class="line"><a name="l00049"></a><span class="lineno"><a class="code" href="class_player_dlg.html#a0e619c3be2c3444f60199145bd782919"> 49</a></span> <a class="code" href="class_player_dlg.html#a0e619c3be2c3444f60199145bd782919">PlayerDlg::PlayerDlg</a>(<a class="code" href="class_screen.html">Screen</a>* s, <a class="code" href="class_form_def.html">FormDef</a>& def, <a class="code" href="class_menu_screen.html">MenuScreen</a>* mgr)</div> +<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> : <a class="code" href="class_form_window.html">FormWindow</a>(s, 0, 0, s->Width(), s->Height()), manager(mgr),</div> +<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> lst_roster(0), btn_add(0), btn_del(0),</div> +<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> txt_name(0), txt_password(0), txt_squadron(0), txt_signature(0),</div> +<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> img_rank(0)</div> +<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> {</div> +<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="class_form_window.html#a7c23ed3256775f051d0cd912bb39b3d5">Init</a>(def);</div> +<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> }</div> +<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div> +<div class="line"><a name="l00058"></a><span class="lineno"><a class="code" href="class_player_dlg.html#a6856629235557d09d079f5c80f623136"> 58</a></span> <a class="code" href="class_player_dlg.html#a6856629235557d09d079f5c80f623136">PlayerDlg::~PlayerDlg</a>()</div> +<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> {</div> +<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> }</div> +<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div> +<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div> +<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="keywordtype">void</span></div> +<div class="line"><a name="l00065"></a><span class="lineno"><a class="code" href="class_player_dlg.html#a6e52040bc817e7997661bba511ac2a43"> 65</a></span> <a class="code" href="class_player_dlg.html#a6e52040bc817e7997661bba511ac2a43">PlayerDlg::RegisterControls</a>()</div> +<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> {</div> +<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="class_player_dlg.html#a447385bfd466878e9f71eb223c502f88">lst_roster</a> = (<a class="code" href="class_list_box.html">ListBox</a>*) <a class="code" href="class_form_window.html#ab9290df354812e49aac9b4868c46ecfe">FindControl</a>(200);</div> +<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="class_player_dlg.html#a1db0af18aa35416d3b72493744dcca49">btn_add</a> = (<a class="code" href="class_button.html">Button</a>*) <a class="code" href="class_form_window.html#ab9290df354812e49aac9b4868c46ecfe">FindControl</a>(101);</div> +<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <a class="code" href="class_player_dlg.html#a90505ef9935192b97267414d0fc93fb8">btn_del</a> = (<a class="code" href="class_button.html">Button</a>*) <a class="code" href="class_form_window.html#ab9290df354812e49aac9b4868c46ecfe">FindControl</a>(102);</div> +<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="class_player_dlg.html#ac1ec842ae6e966ec0826342ed6dc1d0e">txt_name</a> = (<a class="code" href="class_edit_box.html">EditBox</a>*) <a class="code" href="class_form_window.html#ab9290df354812e49aac9b4868c46ecfe">FindControl</a>(201);</div> +<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="class_player_dlg.html#a6f898cdccc0016a74592c31bc4cadecf">txt_password</a> = (<a class="code" href="class_edit_box.html">EditBox</a>*) <a class="code" href="class_form_window.html#ab9290df354812e49aac9b4868c46ecfe">FindControl</a>(202);</div> +<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <a class="code" href="class_player_dlg.html#abd0d5311365aea55d49ffb86945b94ba">txt_squadron</a> = (<a class="code" href="class_edit_box.html">EditBox</a>*) <a class="code" href="class_form_window.html#ab9290df354812e49aac9b4868c46ecfe">FindControl</a>(203);</div> +<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="class_player_dlg.html#ae4418db71f259c3eec270be96122718a">txt_signature</a> = (<a class="code" href="class_edit_box.html">EditBox</a>*) <a class="code" href="class_form_window.html#ab9290df354812e49aac9b4868c46ecfe">FindControl</a>(204);</div> +<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div> +<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="class_player_dlg.html#ac6dad1be69722fd8bd6fac9eb7375056">lbl_createdate</a> = <a class="code" href="class_form_window.html#ab9290df354812e49aac9b4868c46ecfe">FindControl</a>(205);</div> +<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="class_player_dlg.html#ac2627ddd3e1404f0961c14977d2233d5">lbl_rank</a> = <a class="code" href="class_form_window.html#ab9290df354812e49aac9b4868c46ecfe">FindControl</a>(206);</div> +<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <a class="code" href="class_player_dlg.html#aac4b56cd68e6d86800a7824320f760fe">lbl_flighttime</a> = <a class="code" href="class_form_window.html#ab9290df354812e49aac9b4868c46ecfe">FindControl</a>(207);</div> +<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="class_player_dlg.html#ae6a9a1fc0ab80bec1c89441e7aeb4c92">lbl_missions</a> = <a class="code" href="class_form_window.html#ab9290df354812e49aac9b4868c46ecfe">FindControl</a>(208);</div> +<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <a class="code" href="class_player_dlg.html#ac19a39b255f5eb0c179320b9966fd1da">lbl_kills</a> = <a class="code" href="class_form_window.html#ab9290df354812e49aac9b4868c46ecfe">FindControl</a>(209);</div> +<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <a class="code" href="class_player_dlg.html#a38ab1552d25a88485d874d405a78a649">lbl_losses</a> = <a class="code" href="class_form_window.html#ab9290df354812e49aac9b4868c46ecfe">FindControl</a>(210);</div> +<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <a class="code" href="class_player_dlg.html#a26201d9af557730f8ff56dcaf080991a">lbl_points</a> = <a class="code" href="class_form_window.html#ab9290df354812e49aac9b4868c46ecfe">FindControl</a>(211);</div> +<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div> +<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <a class="code" href="class_player_dlg.html#a16c3e9c85badb0d98739bffd908e468d">img_rank</a> = (<a class="code" href="class_image_box.html">ImageBox</a>*) <a class="code" href="class_form_window.html#ab9290df354812e49aac9b4868c46ecfe">FindControl</a>(220);</div> +<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="code" href="_active_window_8h.html#ac1272bb20299d2bb29ec908188ecc7b6">REGISTER_CLIENT</a>(<a class="code" href="_active_window_8h.html#a385c44f6fb256e5716a2302a5b940388a288822a4287807f273f1e15554547d28">EID_CLICK</a>, <a class="code" href="class_player_dlg.html#a16c3e9c85badb0d98739bffd908e468d">img_rank</a>, <a class="code" href="class_player_dlg.html">PlayerDlg</a>, <a class="code" href="class_player_dlg.html#a21609029c2e6b66eeab7f0dd82a20296">OnRank</a>);</div> +<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div> +<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < 15; i++) {</div> +<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <a class="code" href="class_player_dlg.html#aa768d7cdbb980c5b5e9a36a4b9f214bc">medals</a>[i] = -1;</div> +<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="class_player_dlg.html#a47ec40776f42a84933ef2bf3f53b498c">img_medals</a>[i] = (<a class="code" href="class_image_box.html">ImageBox</a>*) <a class="code" href="class_form_window.html#ab9290df354812e49aac9b4868c46ecfe">FindControl</a>(230 + i);</div> +<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#a47ec40776f42a84933ef2bf3f53b498c">img_medals</a>[i])</div> +<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="_active_window_8h.html#ac1272bb20299d2bb29ec908188ecc7b6">REGISTER_CLIENT</a>(<a class="code" href="_active_window_8h.html#a385c44f6fb256e5716a2302a5b940388a288822a4287807f273f1e15554547d28">EID_CLICK</a>, <a class="code" href="class_player_dlg.html#a47ec40776f42a84933ef2bf3f53b498c">img_medals</a>[i], <a class="code" href="class_player_dlg.html">PlayerDlg</a>, <a class="code" href="class_player_dlg.html#a006543d0f6335cf1808972c53b9815f1">OnMedal</a>);</div> +<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  }</div> +<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div> +<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < 10; i++) {</div> +<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <a class="code" href="class_player_dlg.html#a5ef8c58871fd0b9e0b6b5efb4b8aa08a">txt_chat</a>[i] = (<a class="code" href="class_edit_box.html">EditBox</a>*) <a class="code" href="class_form_window.html#ab9290df354812e49aac9b4868c46ecfe">FindControl</a>(300 + i);</div> +<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  }</div> +<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div> +<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <a class="code" href="_active_window_8h.html#ac1272bb20299d2bb29ec908188ecc7b6">REGISTER_CLIENT</a>(<a class="code" href="_active_window_8h.html#a385c44f6fb256e5716a2302a5b940388adadbe9ce9e7b6a99c1430c30f237011a">EID_SELECT</a>, <a class="code" href="class_player_dlg.html#a447385bfd466878e9f71eb223c502f88">lst_roster</a>, <a class="code" href="class_player_dlg.html">PlayerDlg</a>, <a class="code" href="class_player_dlg.html#ae3e94ab029d236616211268ff9e46ddf">OnSelectPlayer</a>);</div> +<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <a class="code" href="_active_window_8h.html#ac1272bb20299d2bb29ec908188ecc7b6">REGISTER_CLIENT</a>(<a class="code" href="_active_window_8h.html#a385c44f6fb256e5716a2302a5b940388a288822a4287807f273f1e15554547d28">EID_CLICK</a>, <a class="code" href="class_player_dlg.html#a1db0af18aa35416d3b72493744dcca49">btn_add</a>, <a class="code" href="class_player_dlg.html">PlayerDlg</a>, <a class="code" href="class_player_dlg.html#a8352060e45eac2740c4e7412281926a7">OnAdd</a>);</div> +<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="code" href="_active_window_8h.html#ac1272bb20299d2bb29ec908188ecc7b6">REGISTER_CLIENT</a>(<a class="code" href="_active_window_8h.html#a385c44f6fb256e5716a2302a5b940388a288822a4287807f273f1e15554547d28">EID_CLICK</a>, <a class="code" href="class_player_dlg.html#a90505ef9935192b97267414d0fc93fb8">btn_del</a>, <a class="code" href="class_player_dlg.html">PlayerDlg</a>, <a class="code" href="class_player_dlg.html#a67486fdb1c24cdd98fe2e743ba4be9c3">OnDel</a>);</div> +<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="_active_window_8h.html#ac1272bb20299d2bb29ec908188ecc7b6">REGISTER_CLIENT</a>(<a class="code" href="_active_window_8h.html#a385c44f6fb256e5716a2302a5b940388a679c3d220e97a5c79120b882f498166a">EID_USER_1</a>, <a class="code" href="class_player_dlg.html#a90505ef9935192b97267414d0fc93fb8">btn_del</a>, <a class="code" href="class_player_dlg.html">PlayerDlg</a>, <a class="code" href="class_player_dlg.html#ac0927f09eeb8f03ff9e789b2e3e1026b">OnDelConfirm</a>);</div> +<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div> +<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="class_player_dlg.html#afb301334f691ad71eb95082e2954fbad">apply</a> = (<a class="code" href="class_button.html">Button</a>*) <a class="code" href="class_form_window.html#ab9290df354812e49aac9b4868c46ecfe">FindControl</a>(1);</div> +<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="_active_window_8h.html#ac1272bb20299d2bb29ec908188ecc7b6">REGISTER_CLIENT</a>(<a class="code" href="_active_window_8h.html#a385c44f6fb256e5716a2302a5b940388a288822a4287807f273f1e15554547d28">EID_CLICK</a>, <a class="code" href="class_player_dlg.html#afb301334f691ad71eb95082e2954fbad">apply</a>, <a class="code" href="class_player_dlg.html">PlayerDlg</a>, <a class="code" href="class_player_dlg.html#ab5333c1d3695b76fbca747470ff2b32a">OnApply</a>);</div> +<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> </div> +<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <a class="code" href="class_player_dlg.html#a985fa6558efd4a7ff5dbb34b8c3c397c">cancel</a> = (<a class="code" href="class_button.html">Button</a>*) <a class="code" href="class_form_window.html#ab9290df354812e49aac9b4868c46ecfe">FindControl</a>(2);</div> +<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="_active_window_8h.html#ac1272bb20299d2bb29ec908188ecc7b6">REGISTER_CLIENT</a>(<a class="code" href="_active_window_8h.html#a385c44f6fb256e5716a2302a5b940388a288822a4287807f273f1e15554547d28">EID_CLICK</a>, <a class="code" href="class_player_dlg.html#a985fa6558efd4a7ff5dbb34b8c3c397c">cancel</a>, <a class="code" href="class_player_dlg.html">PlayerDlg</a>, <a class="code" href="class_player_dlg.html#a417838a5e5ae3eb1be82385780f2f0a2">OnCancel</a>);</div> +<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> }</div> +<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div> +<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div> +<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="keywordtype">void</span></div> +<div class="line"><a name="l00112"></a><span class="lineno"><a class="code" href="class_player_dlg.html#a6853267529c0bb4b27fe40a3edbcaa01"> 112</a></span> <a class="code" href="class_player_dlg.html#a6853267529c0bb4b27fe40a3edbcaa01">PlayerDlg::Show</a>()</div> +<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> {</div> +<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="class_player_dlg.html#a6853267529c0bb4b27fe40a3edbcaa01">FormWindow::Show</a>();</div> +<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div> +<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keywordflow">if</span> (!<a class="code" href="class_player_dlg.html#a447385bfd466878e9f71eb223c502f88">lst_roster</a>) <span class="keywordflow">return</span>;</div> +<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="class_player_dlg.html#a447385bfd466878e9f71eb223c502f88">lst_roster</a>-><a class="code" href="class_list_box.html#adfc94a9d942f8d43269cc8a8bb879d9e">ClearItems</a>();</div> +<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="code" href="class_player_dlg.html#a447385bfd466878e9f71eb223c502f88">lst_roster</a>-><a class="code" href="class_list_box.html#a6291341a94d291a0221b07e51432a80b">SetSelectedStyle</a>(<a class="code" href="class_list_box.html#a504425e3063ddc2f79f2873b4b4c3d71aea00427578a48896023d9e63eb35cf69">ListBox::LIST_ITEM_STYLE_FILLED_BOX</a>);</div> +<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <a class="code" href="class_player_dlg.html#a447385bfd466878e9f71eb223c502f88">lst_roster</a>-><a class="code" href="class_scroll_window.html#ac49c325c8240810bc11ce3e0661bd03c">SetLeading</a>(2);</div> +<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> </div> +<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordtype">int</span> current_index = 0;</div> +<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> </div> +<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="class_list.html">List<Player></a>& roster = <a class="code" href="class_player.html#af44dab2465c8a6f5b68b5cd82d404bfd">Player::GetRoster</a>();</div> +<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < roster.<a class="code" href="class_list.html#a802e2aa9aaef248591140fa032d20d61">size</a>(); i++) {</div> +<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <a class="code" href="class_player.html">Player</a>* p = roster[i];</div> +<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="class_player_dlg.html#a447385bfd466878e9f71eb223c502f88">lst_roster</a>-><a class="code" href="class_list_box.html#a0e567e24077028fe7b27ea3c7b63ddba">AddItem</a>(p-><a class="code" href="class_player.html#a3f92a5e94e3a9b057dd7ea46fa57692d">Name</a>());</div> +<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keywordflow">if</span> (p == <a class="code" href="class_player.html#aa4c0f94d8f2d2f78ce0fffca33f8ed4d">Player::GetCurrentPlayer</a>())</div> +<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  current_index = i;</div> +<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  }</div> +<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div> +<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <a class="code" href="class_player_dlg.html#a447385bfd466878e9f71eb223c502f88">lst_roster</a>-><a class="code" href="class_list_box.html#af8551142841840fd0e801c09768d64ac">SetSelected</a>(current_index);</div> +<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="class_player_dlg.html#ab3e4b9d4ccc2e0140d83b81a93b534e1">ShowPlayer</a>();</div> +<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div> +<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <a class="code" href="class_player_dlg.html#afb301334f691ad71eb95082e2954fbad">apply</a>-><a class="code" href="class_active_window.html#a47926cf5986332369c754c60fb4a1609">SetEnabled</a>(roster.<a class="code" href="class_list.html#a802e2aa9aaef248591140fa032d20d61">size</a>() > 0);</div> +<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> }</div> +<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div> +<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div> +<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="keywordtype">void</span></div> +<div class="line"><a name="l00140"></a><span class="lineno"><a class="code" href="class_player_dlg.html#a46ec7bfd6dd3690e46a4a3a819a07174"> 140</a></span> <a class="code" href="class_player_dlg.html#a46ec7bfd6dd3690e46a4a3a819a07174">PlayerDlg::ExecFrame</a>()</div> +<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> {</div> +<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordflow">if</span> (<a class="code" href="class_keyboard.html#add5b560d7714705a93a118ecffd7fb01">Keyboard::KeyDown</a>(VK_RETURN)) {</div> +<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <a class="code" href="class_player_dlg.html#ab5333c1d3695b76fbca747470ff2b32a">OnApply</a>(0);</div> +<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  }</div> +<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> }</div> +<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> </div> +<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div> +<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="keywordtype">void</span></div> +<div class="line"><a name="l00150"></a><span class="lineno"><a class="code" href="class_player_dlg.html#ab3e4b9d4ccc2e0140d83b81a93b534e1"> 150</a></span> <a class="code" href="class_player_dlg.html#ab3e4b9d4ccc2e0140d83b81a93b534e1">PlayerDlg::ShowPlayer</a>()</div> +<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> {</div> +<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <a class="code" href="class_player.html">Player</a>* p = <a class="code" href="class_player.html#aa4c0f94d8f2d2f78ce0fffca33f8ed4d">Player::GetCurrentPlayer</a>();</div> +<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> </div> +<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordflow">if</span> (p) {</div> +<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#ac1ec842ae6e966ec0826342ed6dc1d0e">txt_name</a>) <a class="code" href="class_player_dlg.html#ac1ec842ae6e966ec0826342ed6dc1d0e">txt_name</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(p-><a class="code" href="class_player.html#a3f92a5e94e3a9b057dd7ea46fa57692d">Name</a>());</div> +<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#a6f898cdccc0016a74592c31bc4cadecf">txt_password</a>) <a class="code" href="class_player_dlg.html#a6f898cdccc0016a74592c31bc4cadecf">txt_password</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(p-><a class="code" href="class_player.html#a9f8b504259947df12443282b988c3ede">Password</a>());</div> +<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#abd0d5311365aea55d49ffb86945b94ba">txt_squadron</a>) <a class="code" href="class_player_dlg.html#abd0d5311365aea55d49ffb86945b94ba">txt_squadron</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(p-><a class="code" href="class_player.html#aea89723a52f888bdc9b552cb2acc2dc2">Squadron</a>());</div> +<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#ae4418db71f259c3eec270be96122718a">txt_signature</a>) <a class="code" href="class_player_dlg.html#ae4418db71f259c3eec270be96122718a">txt_signature</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(p-><a class="code" href="class_player.html#a65cf3d9f34e260733f609184c0f287ec">Signature</a>());</div> +<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> </div> +<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordtype">char</span> flight_time[64], missions[16], kills[16], losses[16], points[16];</div> +<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="_format_util_8cpp.html#a00e356c892f750ff9ce4cebdb7959776">FormatTime</a>(flight_time, p-><a class="code" href="class_player.html#afd2689166fa9cec1e154ef8c398b4a8a">FlightTime</a>());</div> +<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  sprintf_s(missions, <span class="stringliteral">"%d"</span>, p-><a class="code" href="class_player.html#a301f322edd413b48ca2888ca25593037">Missions</a>());</div> +<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  sprintf_s(kills, <span class="stringliteral">"%d"</span>, p-><a class="code" href="class_player.html#aeef25613da2c90e869bfc45406453c47">Kills</a>());</div> +<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  sprintf_s(losses, <span class="stringliteral">"%d"</span>, p-><a class="code" href="class_player.html#a8cbd919d1417352ccf44285849c5baea">Losses</a>());</div> +<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  sprintf_s(points, <span class="stringliteral">"%d"</span>, p-><a class="code" href="class_player.html#ad25bdd0f5098e4894cb80c0f68914b95">Points</a>());</div> +<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div> +<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#ac6dad1be69722fd8bd6fac9eb7375056">lbl_createdate</a>) <a class="code" href="class_player_dlg.html#ac6dad1be69722fd8bd6fac9eb7375056">lbl_createdate</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(<a class="code" href="_format_util_8cpp.html#a110179ff8fbb77f26f7f7685be1fc335">FormatTimeString</a>(p-><a class="code" href="class_player.html#a0892d4cecc5596044bbbc0a46a59cc4f">CreateDate</a>()));</div> +<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#ac2627ddd3e1404f0961c14977d2233d5">lbl_rank</a>) <a class="code" href="class_player_dlg.html#ac2627ddd3e1404f0961c14977d2233d5">lbl_rank</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(<a class="code" href="class_player.html#a8eb317f703a22a57e7f55e6d6733dcb9">Player::RankName</a>(p-><a class="code" href="class_player.html#a646c9ce541db8a8e2b66c30ef310a181">Rank</a>()));</div> +<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#aac4b56cd68e6d86800a7824320f760fe">lbl_flighttime</a>) <a class="code" href="class_player_dlg.html#aac4b56cd68e6d86800a7824320f760fe">lbl_flighttime</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(flight_time);</div> +<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#ae6a9a1fc0ab80bec1c89441e7aeb4c92">lbl_missions</a>) <a class="code" href="class_player_dlg.html#ae6a9a1fc0ab80bec1c89441e7aeb4c92">lbl_missions</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(missions);</div> +<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#ac19a39b255f5eb0c179320b9966fd1da">lbl_kills</a>) <a class="code" href="class_player_dlg.html#ac19a39b255f5eb0c179320b9966fd1da">lbl_kills</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(kills);</div> +<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#a38ab1552d25a88485d874d405a78a649">lbl_losses</a>) <a class="code" href="class_player_dlg.html#a38ab1552d25a88485d874d405a78a649">lbl_losses</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(losses);</div> +<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#a26201d9af557730f8ff56dcaf080991a">lbl_points</a>) <a class="code" href="class_player_dlg.html#a26201d9af557730f8ff56dcaf080991a">lbl_points</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(points);</div> +<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> </div> +<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#a16c3e9c85badb0d98739bffd908e468d">img_rank</a>) {</div> +<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <a class="code" href="class_player_dlg.html#a16c3e9c85badb0d98739bffd908e468d">img_rank</a>-><a class="code" href="class_image_box.html#a7bb47a497229b0cac249a2d745d7cfdc">SetPicture</a>(*<a class="code" href="class_player.html#aab825435c40336c38d176cd437675432">Player::RankInsignia</a>(p-><a class="code" href="class_player.html#a646c9ce541db8a8e2b66c30ef310a181">Rank</a>(), 0));</div> +<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <a class="code" href="class_player_dlg.html#a16c3e9c85badb0d98739bffd908e468d">img_rank</a>-><a class="code" href="class_active_window.html#aeb585b4c72651dbdbca2f7d1fb507f70">Show</a>();</div> +<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  }</div> +<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> </div> +<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < 15; i++) {</div> +<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#a47ec40776f42a84933ef2bf3f53b498c">img_medals</a>[i]) {</div> +<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keywordtype">int</span> medal = p-><a class="code" href="class_player.html#a25bcdfd292b37aa34aad1110db1eabc5">Medal</a>(i);</div> +<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="keywordflow">if</span> (medal) {</div> +<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <a class="code" href="class_player_dlg.html#aa768d7cdbb980c5b5e9a36a4b9f214bc">medals</a>[i] = medal;</div> +<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <a class="code" href="class_player_dlg.html#a47ec40776f42a84933ef2bf3f53b498c">img_medals</a>[i]-><a class="code" href="class_image_box.html#a7bb47a497229b0cac249a2d745d7cfdc">SetPicture</a>(*<a class="code" href="class_player.html#a50936a5ae4d4bc4038a785c02bdd762d">Player::MedalInsignia</a>(medal, 0));</div> +<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <a class="code" href="class_player_dlg.html#a47ec40776f42a84933ef2bf3f53b498c">img_medals</a>[i]-><a class="code" href="class_active_window.html#aeb585b4c72651dbdbca2f7d1fb507f70">Show</a>();</div> +<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  }</div> +<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keywordflow">else</span> {</div> +<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <a class="code" href="class_player_dlg.html#aa768d7cdbb980c5b5e9a36a4b9f214bc">medals</a>[i] = -1;</div> +<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <a class="code" href="class_player_dlg.html#a47ec40776f42a84933ef2bf3f53b498c">img_medals</a>[i]-><a class="code" href="class_active_window.html#af5bbb8948ffaae55580fdadb6f0a0bd4">Hide</a>();</div> +<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  }</div> +<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  }</div> +<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  }</div> +<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div> +<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < 10; i++) {</div> +<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#a5ef8c58871fd0b9e0b6b5efb4b8aa08a">txt_chat</a>[i])</div> +<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <a class="code" href="class_player_dlg.html#a5ef8c58871fd0b9e0b6b5efb4b8aa08a">txt_chat</a>[i]-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(p-><a class="code" href="class_player.html#ac9039d50b2a15005ab36c39961ef1f42">ChatMacro</a>(i));</div> +<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  }</div> +<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  }</div> +<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keywordflow">else</span> {</div> +<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#ac1ec842ae6e966ec0826342ed6dc1d0e">txt_name</a>) <a class="code" href="class_player_dlg.html#ac1ec842ae6e966ec0826342ed6dc1d0e">txt_name</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(<span class="stringliteral">""</span>);</div> +<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#a6f898cdccc0016a74592c31bc4cadecf">txt_password</a>) <a class="code" href="class_player_dlg.html#a6f898cdccc0016a74592c31bc4cadecf">txt_password</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(<span class="stringliteral">""</span>);</div> +<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#abd0d5311365aea55d49ffb86945b94ba">txt_squadron</a>) <a class="code" href="class_player_dlg.html#abd0d5311365aea55d49ffb86945b94ba">txt_squadron</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(<span class="stringliteral">""</span>);</div> +<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#ae4418db71f259c3eec270be96122718a">txt_signature</a>) <a class="code" href="class_player_dlg.html#ae4418db71f259c3eec270be96122718a">txt_signature</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(<span class="stringliteral">""</span>);</div> +<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> </div> +<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#ac6dad1be69722fd8bd6fac9eb7375056">lbl_createdate</a>) <a class="code" href="class_player_dlg.html#ac6dad1be69722fd8bd6fac9eb7375056">lbl_createdate</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(<span class="stringliteral">""</span>);</div> +<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#ac2627ddd3e1404f0961c14977d2233d5">lbl_rank</a>) <a class="code" href="class_player_dlg.html#ac2627ddd3e1404f0961c14977d2233d5">lbl_rank</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(<span class="stringliteral">""</span>);</div> +<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#aac4b56cd68e6d86800a7824320f760fe">lbl_flighttime</a>) <a class="code" href="class_player_dlg.html#aac4b56cd68e6d86800a7824320f760fe">lbl_flighttime</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(<span class="stringliteral">""</span>);</div> +<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#ae6a9a1fc0ab80bec1c89441e7aeb4c92">lbl_missions</a>) <a class="code" href="class_player_dlg.html#ae6a9a1fc0ab80bec1c89441e7aeb4c92">lbl_missions</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(<span class="stringliteral">""</span>);</div> +<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#ac19a39b255f5eb0c179320b9966fd1da">lbl_kills</a>) <a class="code" href="class_player_dlg.html#ac19a39b255f5eb0c179320b9966fd1da">lbl_kills</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(<span class="stringliteral">""</span>);</div> +<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#a38ab1552d25a88485d874d405a78a649">lbl_losses</a>) <a class="code" href="class_player_dlg.html#a38ab1552d25a88485d874d405a78a649">lbl_losses</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(<span class="stringliteral">""</span>);</div> +<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#a26201d9af557730f8ff56dcaf080991a">lbl_points</a>) <a class="code" href="class_player_dlg.html#a26201d9af557730f8ff56dcaf080991a">lbl_points</a>-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(<span class="stringliteral">""</span>);</div> +<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> </div> +<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#a16c3e9c85badb0d98739bffd908e468d">img_rank</a>) <a class="code" href="class_player_dlg.html#a16c3e9c85badb0d98739bffd908e468d">img_rank</a>-><a class="code" href="class_active_window.html#af5bbb8948ffaae55580fdadb6f0a0bd4">Hide</a>();</div> +<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> </div> +<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < 15; i++) {</div> +<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <a class="code" href="class_player_dlg.html#aa768d7cdbb980c5b5e9a36a4b9f214bc">medals</a>[i] = -1;</div> +<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#a47ec40776f42a84933ef2bf3f53b498c">img_medals</a>[i])</div> +<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <a class="code" href="class_player_dlg.html#a47ec40776f42a84933ef2bf3f53b498c">img_medals</a>[i]-><a class="code" href="class_active_window.html#af5bbb8948ffaae55580fdadb6f0a0bd4">Hide</a>();</div> +<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  }</div> +<div class="line"><a name="l00221"></a><span class="lineno"> 221</span> </div> +<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < 10; i++) {</div> +<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#a5ef8c58871fd0b9e0b6b5efb4b8aa08a">txt_chat</a>[i])</div> +<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <a class="code" href="class_player_dlg.html#a5ef8c58871fd0b9e0b6b5efb4b8aa08a">txt_chat</a>[i]-><a class="code" href="class_active_window.html#ac861f21da6e5ea919923ac19866fbb88">SetText</a>(<span class="stringliteral">""</span>);</div> +<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  }</div> +<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  }</div> +<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> }</div> +<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> </div> +<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> </div> +<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="keywordtype">void</span></div> +<div class="line"><a name="l00232"></a><span class="lineno"><a class="code" href="class_player_dlg.html#a60a8a2e9ea4b3ea9ed7636e67de79af8"> 232</a></span> <a class="code" href="class_player_dlg.html#a60a8a2e9ea4b3ea9ed7636e67de79af8">PlayerDlg::UpdatePlayer</a>()</div> +<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> {</div> +<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  <a class="code" href="class_player.html">Player</a>* p = <a class="code" href="class_player.html#aa4c0f94d8f2d2f78ce0fffca33f8ed4d">Player::GetCurrentPlayer</a>();</div> +<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> </div> +<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="keywordflow">if</span> (p) {</div> +<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#ac1ec842ae6e966ec0826342ed6dc1d0e">txt_name</a>) p-><a class="code" href="class_player.html#aaf2245bfc25711c9551c44250952463a">SetName</a>(<a class="code" href="class_player_dlg.html#ac1ec842ae6e966ec0826342ed6dc1d0e">txt_name</a>-><a class="code" href="class_active_window.html#ae8eaf83e2c957997d2970d116100eee9">GetText</a>());</div> +<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#a6f898cdccc0016a74592c31bc4cadecf">txt_password</a>) p-><a class="code" href="class_player.html#adc8e869629cb441514f25e46541a5da3">SetPassword</a>(<a class="code" href="class_player_dlg.html#a6f898cdccc0016a74592c31bc4cadecf">txt_password</a>-><a class="code" href="class_active_window.html#ae8eaf83e2c957997d2970d116100eee9">GetText</a>());</div> +<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#abd0d5311365aea55d49ffb86945b94ba">txt_squadron</a>) p-><a class="code" href="class_player.html#adb9a33b7bd5ba3d80e3ffe6b96ce7413">SetSquadron</a>(<a class="code" href="class_player_dlg.html#abd0d5311365aea55d49ffb86945b94ba">txt_squadron</a>-><a class="code" href="class_active_window.html#ae8eaf83e2c957997d2970d116100eee9">GetText</a>());</div> +<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#ae4418db71f259c3eec270be96122718a">txt_signature</a>) p-><a class="code" href="class_player.html#a99bdcc1aa39883cfd34ad410551f037d">SetSignature</a>(<a class="code" href="class_player_dlg.html#ae4418db71f259c3eec270be96122718a">txt_signature</a>-><a class="code" href="class_active_window.html#ae8eaf83e2c957997d2970d116100eee9">GetText</a>());</div> +<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> </div> +<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < 10; i++) {</div> +<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <span class="keywordflow">if</span> (<a class="code" href="class_player_dlg.html#a5ef8c58871fd0b9e0b6b5efb4b8aa08a">txt_chat</a>[i])</div> +<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  p-><a class="code" href="class_player.html#a853946c3fd860bed93759524655311b2">SetChatMacro</a>(i, <a class="code" href="class_player_dlg.html#a5ef8c58871fd0b9e0b6b5efb4b8aa08a">txt_chat</a>[i]-><a class="code" href="class_active_window.html#ae8eaf83e2c957997d2970d116100eee9">GetText</a>());</div> +<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  }</div> +<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  }</div> +<div class="line"><a name="l00247"></a><span class="lineno"> 247</span> }</div> +<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> </div> +<div class="line"><a name="l00249"></a><span class="lineno"> 249</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00250"></a><span class="lineno"> 250</span> </div> +<div class="line"><a name="l00251"></a><span class="lineno"> 251</span> <span class="keywordtype">void</span></div> +<div class="line"><a name="l00252"></a><span class="lineno"><a class="code" href="class_player_dlg.html#ae3e94ab029d236616211268ff9e46ddf"> 252</a></span> <a class="code" href="class_player_dlg.html#ae3e94ab029d236616211268ff9e46ddf">PlayerDlg::OnSelectPlayer</a>(<a class="code" href="struct_a_w_event.html">AWEvent</a>* event)</div> +<div class="line"><a name="l00253"></a><span class="lineno"> 253</span> {</div> +<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keywordflow">if</span> (!<a class="code" href="class_player_dlg.html#a447385bfd466878e9f71eb223c502f88">lst_roster</a>) <span class="keywordflow">return</span>;</div> +<div class="line"><a name="l00255"></a><span class="lineno"> 255</span> </div> +<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <a class="code" href="class_player_dlg.html#a60a8a2e9ea4b3ea9ed7636e67de79af8">UpdatePlayer</a>();</div> +<div class="line"><a name="l00257"></a><span class="lineno"> 257</span> </div> +<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <span class="keywordtype">int</span> index = <a class="code" href="class_player_dlg.html#a447385bfd466878e9f71eb223c502f88">lst_roster</a>-><a class="code" href="class_list_box.html#a2e58c184bc40db41728f6eda729d8407">GetSelection</a>();</div> +<div class="line"><a name="l00259"></a><span class="lineno"> 259</span> </div> +<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <a class="code" href="class_list.html">List<Player></a>& roster = <a class="code" href="class_player.html#af44dab2465c8a6f5b68b5cd82d404bfd">Player::GetRoster</a>();</div> +<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="keywordflow">if</span> (index >= 0 && index < roster.<a class="code" href="class_list.html#a802e2aa9aaef248591140fa032d20d61">size</a>()) {</div> +<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <a class="code" href="class_player.html#a853541bbcff23a9b9aca2b13d34e6b4b">Player::SelectPlayer</a>(roster.<a class="code" href="class_list.html#a92f41ba1f2810b54d6b47ce727ff9835">at</a>(index));</div> +<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  }</div> +<div class="line"><a name="l00264"></a><span class="lineno"> 264</span> </div> +<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <a class="code" href="class_player_dlg.html#ab3e4b9d4ccc2e0140d83b81a93b534e1">ShowPlayer</a>();</div> +<div class="line"><a name="l00266"></a><span class="lineno"> 266</span> </div> +<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <a class="code" href="class_player_dlg.html#afb301334f691ad71eb95082e2954fbad">apply</a>-><a class="code" href="class_active_window.html#a47926cf5986332369c754c60fb4a1609">SetEnabled</a>(roster.<a class="code" href="class_list.html#a802e2aa9aaef248591140fa032d20d61">size</a>() > 0);</div> +<div class="line"><a name="l00268"></a><span class="lineno"> 268</span> }</div> +<div class="line"><a name="l00269"></a><span class="lineno"> 269</span> </div> +<div class="line"><a name="l00270"></a><span class="lineno"> 270</span> <span class="keywordtype">void</span></div> +<div class="line"><a name="l00271"></a><span class="lineno"><a class="code" href="class_player_dlg.html#a8352060e45eac2740c4e7412281926a7"> 271</a></span> <a class="code" href="class_player_dlg.html#a8352060e45eac2740c4e7412281926a7">PlayerDlg::OnAdd</a>(<a class="code" href="struct_a_w_event.html">AWEvent</a>* event)</div> +<div class="line"><a name="l00272"></a><span class="lineno"> 272</span> {</div> +<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <a class="code" href="class_player.html#a681ae41bdea340345fee412144bee0d5">Player::Create</a>(<span class="stringliteral">"Pilot"</span>);</div> +<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <a class="code" href="class_player_dlg.html#ab3e4b9d4ccc2e0140d83b81a93b534e1">ShowPlayer</a>();</div> +<div class="line"><a name="l00275"></a><span class="lineno"> 275</span> </div> +<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keywordflow">if</span> (!<a class="code" href="class_player_dlg.html#a447385bfd466878e9f71eb223c502f88">lst_roster</a>) <span class="keywordflow">return</span>;</div> +<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <a class="code" href="class_player_dlg.html#a447385bfd466878e9f71eb223c502f88">lst_roster</a>-><a class="code" href="class_list_box.html#adfc94a9d942f8d43269cc8a8bb879d9e">ClearItems</a>();</div> +<div class="line"><a name="l00278"></a><span class="lineno"> 278</span> </div> +<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <a class="code" href="class_list.html">List<Player></a>& roster = <a class="code" href="class_player.html#af44dab2465c8a6f5b68b5cd82d404bfd">Player::GetRoster</a>();</div> +<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < roster.<a class="code" href="class_list.html#a802e2aa9aaef248591140fa032d20d61">size</a>(); i++) {</div> +<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <a class="code" href="class_player.html">Player</a>* p = roster[i];</div> +<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <a class="code" href="class_player_dlg.html#a447385bfd466878e9f71eb223c502f88">lst_roster</a>-><a class="code" href="class_list_box.html#a0e567e24077028fe7b27ea3c7b63ddba">AddItem</a>(p-><a class="code" href="class_player.html#a3f92a5e94e3a9b057dd7ea46fa57692d">Name</a>());</div> +<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <a class="code" href="class_player_dlg.html#a447385bfd466878e9f71eb223c502f88">lst_roster</a>-><a class="code" href="class_list_box.html#af8551142841840fd0e801c09768d64ac">SetSelected</a>(i, (p == <a class="code" href="class_player.html#aa4c0f94d8f2d2f78ce0fffca33f8ed4d">Player::GetCurrentPlayer</a>()));</div> +<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  }</div> +<div class="line"><a name="l00285"></a><span class="lineno"> 285</span> </div> +<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <a class="code" href="class_player_dlg.html#afb301334f691ad71eb95082e2954fbad">apply</a>-><a class="code" href="class_active_window.html#a47926cf5986332369c754c60fb4a1609">SetEnabled</a>(roster.<a class="code" href="class_list.html#a802e2aa9aaef248591140fa032d20d61">size</a>() > 0);</div> +<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> }</div> +<div class="line"><a name="l00288"></a><span class="lineno"> 288</span> </div> +<div class="line"><a name="l00289"></a><span class="lineno"> 289</span> <span class="keywordtype">void</span></div> +<div class="line"><a name="l00290"></a><span class="lineno"><a class="code" href="class_player_dlg.html#a67486fdb1c24cdd98fe2e743ba4be9c3"> 290</a></span> <a class="code" href="class_player_dlg.html#a67486fdb1c24cdd98fe2e743ba4be9c3">PlayerDlg::OnDel</a>(<a class="code" href="struct_a_w_event.html">AWEvent</a>* event)</div> +<div class="line"><a name="l00291"></a><span class="lineno"> 291</span> {</div> +<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="keywordflow">if</span> (!<a class="code" href="class_player.html#aa4c0f94d8f2d2f78ce0fffca33f8ed4d">Player::GetCurrentPlayer</a>())</div> +<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <span class="keywordflow">return</span>;</div> +<div class="line"><a name="l00294"></a><span class="lineno"> 294</span> </div> +<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <a class="code" href="class_confirm_dlg.html">ConfirmDlg</a>* confirm = <a class="code" href="class_player_dlg.html#ad77f43ca43199da4e5f42951505ba80a">manager</a>-><a class="code" href="class_menu_screen.html#a3d54efd72cabbec3faea2c458e600c62">GetConfirmDlg</a>();</div> +<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="keywordflow">if</span> (confirm) {</div> +<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="keywordtype">char</span> msg[256];</div> +<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  sprintf_s(msg, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"PlayerDlg.are-you-sure"</span>).data(),</div> +<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <a class="code" href="class_player.html#aa4c0f94d8f2d2f78ce0fffca33f8ed4d">Player::GetCurrentPlayer</a>()->Name().data());</div> +<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  confirm-><a class="code" href="class_confirm_dlg.html#a04ed0b9c3cc535d1c7c7fde8f2687419">SetMessage</a>(msg);</div> +<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  confirm-><a class="code" href="class_confirm_dlg.html#aaa718a6aef9c5e80e912c186f5538749">SetTitle</a>(<a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"PlayerDlg.confirm-delete"</span>));</div> +<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  confirm-><a class="code" href="class_confirm_dlg.html#a2e44d78cda27e1168b41a2554d8f871d">SetParentControl</a>(<a class="code" href="class_player_dlg.html#a90505ef9935192b97267414d0fc93fb8">btn_del</a>);</div> +<div class="line"><a name="l00303"></a><span class="lineno"> 303</span> </div> +<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <a class="code" href="class_player_dlg.html#ad77f43ca43199da4e5f42951505ba80a">manager</a>-><a class="code" href="class_menu_screen.html#a9fd89e45a26d3ae9582a9f6e1aab4e30">ShowConfirmDlg</a>();</div> +<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  }</div> +<div class="line"><a name="l00306"></a><span class="lineno"> 306</span> </div> +<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <span class="keywordflow">else</span> {</div> +<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <a class="code" href="class_player_dlg.html#ac0927f09eeb8f03ff9e789b2e3e1026b">OnDelConfirm</a>(event);</div> +<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  }</div> +<div class="line"><a name="l00310"></a><span class="lineno"> 310</span> }</div> +<div class="line"><a name="l00311"></a><span class="lineno"> 311</span> </div> +<div class="line"><a name="l00312"></a><span class="lineno"> 312</span> <span class="keywordtype">void</span></div> +<div class="line"><a name="l00313"></a><span class="lineno"><a class="code" href="class_player_dlg.html#ac0927f09eeb8f03ff9e789b2e3e1026b"> 313</a></span> <a class="code" href="class_player_dlg.html#ac0927f09eeb8f03ff9e789b2e3e1026b">PlayerDlg::OnDelConfirm</a>(<a class="code" href="struct_a_w_event.html">AWEvent</a>* event)</div> +<div class="line"><a name="l00314"></a><span class="lineno"> 314</span> {</div> +<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  <a class="code" href="class_form_window.html#a0232c3b23cb883d3d60dc86b72407226">Player::Destroy</a>(<a class="code" href="class_player.html#aa4c0f94d8f2d2f78ce0fffca33f8ed4d">Player::GetCurrentPlayer</a>());</div> +<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <a class="code" href="class_player_dlg.html#ab3e4b9d4ccc2e0140d83b81a93b534e1">ShowPlayer</a>();</div> +<div class="line"><a name="l00317"></a><span class="lineno"> 317</span> </div> +<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <span class="keywordflow">if</span> (!<a class="code" href="class_player_dlg.html#a447385bfd466878e9f71eb223c502f88">lst_roster</a>) <span class="keywordflow">return</span>;</div> +<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <a class="code" href="class_player_dlg.html#a447385bfd466878e9f71eb223c502f88">lst_roster</a>-><a class="code" href="class_list_box.html#adfc94a9d942f8d43269cc8a8bb879d9e">ClearItems</a>();</div> +<div class="line"><a name="l00320"></a><span class="lineno"> 320</span> </div> +<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <a class="code" href="class_list.html">List<Player></a>& roster = <a class="code" href="class_player.html#af44dab2465c8a6f5b68b5cd82d404bfd">Player::GetRoster</a>();</div> +<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < roster.<a class="code" href="class_list.html#a802e2aa9aaef248591140fa032d20d61">size</a>(); i++) {</div> +<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  <a class="code" href="class_player.html">Player</a>* p = roster[i];</div> +<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  <a class="code" href="class_player_dlg.html#a447385bfd466878e9f71eb223c502f88">lst_roster</a>-><a class="code" href="class_list_box.html#a0e567e24077028fe7b27ea3c7b63ddba">AddItem</a>(p-><a class="code" href="class_player.html#a3f92a5e94e3a9b057dd7ea46fa57692d">Name</a>());</div> +<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  <a class="code" href="class_player_dlg.html#a447385bfd466878e9f71eb223c502f88">lst_roster</a>-><a class="code" href="class_list_box.html#af8551142841840fd0e801c09768d64ac">SetSelected</a>(i, (p == <a class="code" href="class_player.html#aa4c0f94d8f2d2f78ce0fffca33f8ed4d">Player::GetCurrentPlayer</a>()));</div> +<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  }</div> +<div class="line"><a name="l00327"></a><span class="lineno"> 327</span> </div> +<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <a class="code" href="class_player_dlg.html#afb301334f691ad71eb95082e2954fbad">apply</a>-><a class="code" href="class_active_window.html#a47926cf5986332369c754c60fb4a1609">SetEnabled</a>(roster.<a class="code" href="class_list.html#a802e2aa9aaef248591140fa032d20d61">size</a>() > 0);</div> +<div class="line"><a name="l00329"></a><span class="lineno"> 329</span> }</div> +<div class="line"><a name="l00330"></a><span class="lineno"> 330</span> </div> +<div class="line"><a name="l00331"></a><span class="lineno"> 331</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00332"></a><span class="lineno"> 332</span> </div> +<div class="line"><a name="l00333"></a><span class="lineno"> 333</span> <span class="keywordtype">void</span></div> +<div class="line"><a name="l00334"></a><span class="lineno"><a class="code" href="class_player_dlg.html#a21609029c2e6b66eeab7f0dd82a20296"> 334</a></span> <a class="code" href="class_player_dlg.html#a21609029c2e6b66eeab7f0dd82a20296">PlayerDlg::OnRank</a>(<a class="code" href="struct_a_w_event.html">AWEvent</a>* event)</div> +<div class="line"><a name="l00335"></a><span class="lineno"> 335</span> {</div> +<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  <a class="code" href="class_player.html">Player</a>* p = <a class="code" href="class_player.html#aa4c0f94d8f2d2f78ce0fffca33f8ed4d">Player::GetCurrentPlayer</a>();</div> +<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  <a class="code" href="class_award_show_dlg.html">AwardShowDlg</a>* award_dlg = <a class="code" href="class_player_dlg.html#ad77f43ca43199da4e5f42951505ba80a">manager</a>-><a class="code" href="class_menu_screen.html#adfbe819b2463560fcbd808ef16d6d4db">GetAwardDlg</a>();</div> +<div class="line"><a name="l00338"></a><span class="lineno"> 338</span> </div> +<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  <span class="keywordflow">if</span> (p && award_dlg) {</div> +<div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  award_dlg-><a class="code" href="class_award_show_dlg.html#a7adcf4f5370450de6660d4252b529ed7">SetRank</a>(p-><a class="code" href="class_player.html#a646c9ce541db8a8e2b66c30ef310a181">Rank</a>());</div> +<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  <a class="code" href="class_player_dlg.html#ad77f43ca43199da4e5f42951505ba80a">manager</a>-><a class="code" href="class_menu_screen.html#ac1c6149de46425909cc92a99e6dc8581">ShowAwardDlg</a>();</div> +<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  }</div> +<div class="line"><a name="l00343"></a><span class="lineno"> 343</span> }</div> +<div class="line"><a name="l00344"></a><span class="lineno"> 344</span> </div> +<div class="line"><a name="l00345"></a><span class="lineno"> 345</span> <span class="keywordtype">void</span></div> +<div class="line"><a name="l00346"></a><span class="lineno"><a class="code" href="class_player_dlg.html#a006543d0f6335cf1808972c53b9815f1"> 346</a></span> <a class="code" href="class_player_dlg.html#a006543d0f6335cf1808972c53b9815f1">PlayerDlg::OnMedal</a>(<a class="code" href="struct_a_w_event.html">AWEvent</a>* event)</div> +<div class="line"><a name="l00347"></a><span class="lineno"> 347</span> {</div> +<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  <a class="code" href="class_player.html">Player</a>* p = <a class="code" href="class_player.html#aa4c0f94d8f2d2f78ce0fffca33f8ed4d">Player::GetCurrentPlayer</a>();</div> +<div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  <a class="code" href="class_award_show_dlg.html">AwardShowDlg</a>* award_dlg = <a class="code" href="class_player_dlg.html#ad77f43ca43199da4e5f42951505ba80a">manager</a>-><a class="code" href="class_menu_screen.html#adfbe819b2463560fcbd808ef16d6d4db">GetAwardDlg</a>();</div> +<div class="line"><a name="l00350"></a><span class="lineno"> 350</span> </div> +<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  <span class="keywordflow">if</span> (p && award_dlg) {</div> +<div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  <span class="keywordtype">int</span> m = -1, i;</div> +<div class="line"><a name="l00353"></a><span class="lineno"> 353</span> </div> +<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  <span class="keywordflow">for</span> (i = 0; i < 15; i++) {</div> +<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  <span class="keywordflow">if</span> (event-><a class="code" href="struct_a_w_event.html#a04fd79197964d2ae5d3ee5aeaf7b5053">window</a> == <a class="code" href="class_player_dlg.html#a47ec40776f42a84933ef2bf3f53b498c">img_medals</a>[i]) {</div> +<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  m = i;</div> +<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  <span class="keywordflow">break</span>;</div> +<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  }</div> +<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  }</div> +<div class="line"><a name="l00360"></a><span class="lineno"> 360</span> </div> +<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  <span class="keywordflow">if</span> (m >= 0) {</div> +<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  award_dlg-><a class="code" href="class_award_show_dlg.html#a638c1f41c42bf1c8b78e9cdac61fc715">SetMedal</a>(<a class="code" href="class_player_dlg.html#aa768d7cdbb980c5b5e9a36a4b9f214bc">medals</a>[i]);</div> +<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  <a class="code" href="class_player_dlg.html#ad77f43ca43199da4e5f42951505ba80a">manager</a>-><a class="code" href="class_menu_screen.html#ac1c6149de46425909cc92a99e6dc8581">ShowAwardDlg</a>();</div> +<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  }</div> +<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  }</div> +<div class="line"><a name="l00366"></a><span class="lineno"> 366</span> }</div> +<div class="line"><a name="l00367"></a><span class="lineno"> 367</span> </div> +<div class="line"><a name="l00368"></a><span class="lineno"> 368</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00369"></a><span class="lineno"> 369</span> </div> +<div class="line"><a name="l00370"></a><span class="lineno"> 370</span> <span class="keywordtype">void</span></div> +<div class="line"><a name="l00371"></a><span class="lineno"><a class="code" href="class_player_dlg.html#ab5333c1d3695b76fbca747470ff2b32a"> 371</a></span> <a class="code" href="class_player_dlg.html#ab5333c1d3695b76fbca747470ff2b32a">PlayerDlg::OnApply</a>(<a class="code" href="struct_a_w_event.html">AWEvent</a>* event)</div> +<div class="line"><a name="l00372"></a><span class="lineno"> 372</span> {</div> +<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  <a class="code" href="class_player.html">Player</a>* player = <a class="code" href="class_player.html#aa4c0f94d8f2d2f78ce0fffca33f8ed4d">Player::GetCurrentPlayer</a>();</div> +<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  <span class="keywordflow">if</span> (player) {</div> +<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  <a class="code" href="class_player_dlg.html#a60a8a2e9ea4b3ea9ed7636e67de79af8">UpdatePlayer</a>();</div> +<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  <a class="code" href="class_player.html#a698c3a101a2ef8a0739576555e10acec">Player::Save</a>();</div> +<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  }</div> +<div class="line"><a name="l00378"></a><span class="lineno"> 378</span> </div> +<div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  <a class="code" href="_game_8cpp.html#ad899ce91ed5646957e2403e1353ad0a5">FlushKeys</a>();</div> +<div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <a class="code" href="class_player_dlg.html#ad77f43ca43199da4e5f42951505ba80a">manager</a>-><a class="code" href="class_menu_screen.html#adbf00fc9cbcd56957ecf8bcb0a85cb6b">ShowMenuDlg</a>();</div> +<div class="line"><a name="l00381"></a><span class="lineno"> 381</span> }</div> +<div class="line"><a name="l00382"></a><span class="lineno"> 382</span> </div> +<div class="line"><a name="l00383"></a><span class="lineno"> 383</span> <span class="keywordtype">void</span></div> +<div class="line"><a name="l00384"></a><span class="lineno"><a class="code" href="class_player_dlg.html#a417838a5e5ae3eb1be82385780f2f0a2"> 384</a></span> <a class="code" href="class_player_dlg.html#a417838a5e5ae3eb1be82385780f2f0a2">PlayerDlg::OnCancel</a>(<a class="code" href="struct_a_w_event.html">AWEvent</a>* event)</div> +<div class="line"><a name="l00385"></a><span class="lineno"> 385</span> {</div> +<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <a class="code" href="class_player.html#aad1f19358c4fedb2db9e9428c71763c8">Player::Load</a>();</div> +<div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  <a class="code" href="_game_8cpp.html#ad899ce91ed5646957e2403e1353ad0a5">FlushKeys</a>();</div> +<div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  <a class="code" href="class_player_dlg.html#ad77f43ca43199da4e5f42951505ba80a">manager</a>-><a class="code" href="class_menu_screen.html#adbf00fc9cbcd56957ecf8bcb0a85cb6b">ShowMenuDlg</a>();</div> +<div class="line"><a name="l00389"></a><span class="lineno"> 389</span> }</div> +</div><!-- fragment --></div><!-- contents --> +</div><!-- doc-content --> +<!-- start footer part --> +<div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> + <ul> + <li class="navelem"><a class="el" href="dir_ea1b58c809a5070716d7c602998a95b0.html">Stars45</a></li><li class="navelem"><a class="el" href="_player_dlg_8cpp.html">PlayerDlg.cpp</a></li> + <li class="footer">Generated on Thu May 31 2012 16:31:14 for Starshatter_Open by + <a href="http://www.doxygen.org/index.html"> + <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1 </li> + </ul> +</div> +</body> +</html> |