hexsha
stringlengths 40
40
| size
int64 5
1.05M
| ext
stringclasses 588
values | lang
stringclasses 305
values | max_stars_repo_path
stringlengths 3
363
| max_stars_repo_name
stringlengths 5
118
| max_stars_repo_head_hexsha
stringlengths 40
40
| max_stars_repo_licenses
listlengths 1
10
| max_stars_count
float64 1
191k
⌀ | max_stars_repo_stars_event_min_datetime
stringdate 2015-01-01 00:00:35
2022-03-31 23:43:49
⌀ | max_stars_repo_stars_event_max_datetime
stringdate 2015-01-01 12:37:38
2022-03-31 23:59:52
⌀ | max_issues_repo_path
stringlengths 3
363
| max_issues_repo_name
stringlengths 5
118
| max_issues_repo_head_hexsha
stringlengths 40
40
| max_issues_repo_licenses
listlengths 1
10
| max_issues_count
float64 1
134k
⌀ | max_issues_repo_issues_event_min_datetime
stringlengths 24
24
⌀ | max_issues_repo_issues_event_max_datetime
stringlengths 24
24
⌀ | max_forks_repo_path
stringlengths 3
363
| max_forks_repo_name
stringlengths 5
135
| max_forks_repo_head_hexsha
stringlengths 40
40
| max_forks_repo_licenses
listlengths 1
10
| max_forks_count
float64 1
105k
⌀ | max_forks_repo_forks_event_min_datetime
stringdate 2015-01-01 00:01:02
2022-03-31 23:27:27
⌀ | max_forks_repo_forks_event_max_datetime
stringdate 2015-01-03 08:55:07
2022-03-31 23:59:24
⌀ | content
stringlengths 5
1.05M
| avg_line_length
float64 1.13
1.04M
| max_line_length
int64 1
1.05M
| alphanum_fraction
float64 0
1
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
efccc8870e36cd4f4ffb829859bf000dbf400d85
| 497
|
aspx
|
ASP
|
Samples/LogExec.Sample.Web.Mvc/Views/Test/About.aspx
|
chai-deshpande/LogExec.Web.Mvc
|
5276138ec0ccb2c09debde02c7c9d670972262ec
|
[
"MIT"
] | 1
|
2016-09-04T16:36:32.000Z
|
2016-09-04T16:36:32.000Z
|
Samples/LogExec.Sample.Web.Mvc/Views/Test/About.aspx
|
chai-deshpande/LogExec.Web.Mvc
|
5276138ec0ccb2c09debde02c7c9d670972262ec
|
[
"MIT"
] | null | null | null |
Samples/LogExec.Sample.Web.Mvc/Views/Test/About.aspx
|
chai-deshpande/LogExec.Web.Mvc
|
5276138ec0ccb2c09debde02c7c9d670972262ec
|
[
"MIT"
] | null | null | null |
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<!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 id="Head1" runat="server">
<title>About Page</title>
</head>
<body>
<h1>About</h1>
This is the about page doing some dummy work.
<br/>
<br/>
<a href="<%= Url.Action("Index", "Test") %>">Back to Index</a>
</body>
</html>
| 29.235294
| 121
| 0.617706
|
4ccc6715c2341d930b9c00b50b6b94dca904b7c1
| 1,656
|
ascx
|
ASP
|
Admin/Content/ParagraphListModules.ascx
|
RishkoPavel/DynamicWeb
|
023e5eaf4c1c25cb9f3c642490f0ef1e386a12e1
|
[
"Apache-2.0"
] | null | null | null |
Admin/Content/ParagraphListModules.ascx
|
RishkoPavel/DynamicWeb
|
023e5eaf4c1c25cb9f3c642490f0ef1e386a12e1
|
[
"Apache-2.0"
] | null | null | null |
Admin/Content/ParagraphListModules.ascx
|
RishkoPavel/DynamicWeb
|
023e5eaf4c1c25cb9f3c642490f0ef1e386a12e1
|
[
"Apache-2.0"
] | null | null | null |
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="ParagraphListModules.ascx.vb" Inherits="Dynamicweb.Admin.ParagraphListModules" %>
<%@ Register TagPrefix="dw" Namespace="Dynamicweb.Controls" Assembly="Dynamicweb.Controls" %>
<script type="text/javascript">
function <%=Me.ID%>_submitChoice(module) {
var act = location.href;
act = act.replace(/\?ParagraphModuleSystemName=([^&\?]+)/gi, '');
act = act.replace(/&ParagraphModuleSystemName=([^&\?]+)/gi, '');
if(act.indexOf('#') >= 0)
act = act.substring(0, act.indexOf('#'));
act += ((act.indexOf('?') >= 0 ? '&' : '?') + 'ParagraphModuleSystemName=' + module);
window.self.location = act;
}
</script>
<table style="width:100%">
<asp:Repeater ID="repRows" runat="server" EnableViewState="false">
<ItemTemplate>
<tr>
<asp:Repeater ID="repColumns" runat="server">
<ItemTemplate>
<td align="left" width="50%">
<asp:Literal ID="icon" runat="server"></asp:Literal>
<asp:Literal ID="hLink" runat="server"></asp:Literal>
</td>
</ItemTemplate>
</asp:Repeater>
</tr>
</ItemTemplate>
</asp:Repeater>
<asp:PlaceHolder ID="phNotFound" runat="server">
<tr>
<td>
<dw:TranslateLabel id="lbNotFound" Text="Ikke_fundet" runat="server" />
</td>
</tr>
</asp:PlaceHolder>
</table>
| 37.636364
| 144
| 0.51087
|
3e17a69762971020af1f4af80e17678075883b8c
| 2,949
|
ascx
|
ASP
|
SolidCP/Sources/SolidCP.WebPortal/DesktopModules/SolidCP/ProviderControls/SmarterMail100_EditDomain_Throttling.ascx
|
shadowchamber/SolidCP
|
359b6c3fae2b9ebf34bdb88c8ed0079a36908cb3
|
[
"BSD-3-Clause"
] | 54
|
2019-09-01T21:58:28.000Z
|
2022-03-31T07:24:19.000Z
|
SolidCP/Sources/SolidCP.WebPortal/DesktopModules/SolidCP/ProviderControls/SmarterMail100_EditDomain_Throttling.ascx
|
gitohm/SolidCP
|
b51985250c0b8af71cb1d619c54aac2d9a08425a
|
[
"BSD-3-Clause"
] | 84
|
2019-09-03T06:53:59.000Z
|
2022-03-19T12:53:39.000Z
|
SolidCP/Sources/SolidCP.WebPortal/DesktopModules/SolidCP/ProviderControls/SmarterMail100_EditDomain_Throttling.ascx
|
gitohm/SolidCP
|
b51985250c0b8af71cb1d619c54aac2d9a08425a
|
[
"BSD-3-Clause"
] | 51
|
2019-09-02T23:26:36.000Z
|
2022-02-24T11:49:17.000Z
|
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SmarterMail100_EditDomain_Throttling.ascx.cs" Inherits="SolidCP.Portal.ProviderControls.SmarterMail100_EditDomain_Throttling" %>
<table>
<tr>
<td align="right" width = "200"><asp:Label ID="lbMessagesPerHour" runat="server" meta:resourcekey="lbMessagesPerHour" /></td>
<td width = "100">
<asp:TextBox runat="server" ID="txtMessagesPerHour" Text="0" Width="80px" CssClass="form-control" />
<asp:RangeValidator Type="Integer" runat="server" ID="valMessagesPerHour" ControlToValidate="txtMessagesPerHour"
MinimumValue="0" Display="Dynamic" />
<asp:RequiredFieldValidator ID="reqValMessagesPerHour" runat="server" ControlToValidate="txtMessagesPerHour"
Display="Dynamic" />
</td>
<td align="left" width = "10">
<asp:CheckBox runat="server" ID="cbMessagesPerHour" />
</td>
<td width = "50" align="left"><asp:Label ID="lbMessagesPerHourEnabled" runat="server" meta:resourcekey="lbEnabled" /></td>
</tr>
<tr>
<td align="right" width = "200"><asp:Label ID="lbBandwidthPerHour" runat="server" meta:resourcekey="lbBandwidthPerHour" /></td>
<td width = "100">
<asp:TextBox runat="server" ID="txtBandwidthPerHour" Text="0" Width="80px" CssClass="form-control" />
<asp:RangeValidator Type="Integer" runat="server" ID="valBandwidthPerHour" ControlToValidate="txtBandwidthPerHour"
MinimumValue="0" Display="Dynamic" />
<asp:RequiredFieldValidator ID="reqValBandwidth" runat="server" ControlToValidate="txtBandwidthPerHour"
Display="Dynamic" />
</td>
<td align="left" width = "10">
<asp:CheckBox runat="server" ID="cbBandwidthPerHour"/>
</td>
<td width = "50" align="left"><asp:Label ID="lbBandwidthPerHourEnabled" runat="server" meta:resourcekey="lbEnabled" /></td>
</tr>
<tr>
<td align="right" width = "200"><asp:Label ID="lbBouncesPerHour" runat="server" meta:resourcekey="lbBouncesPerHour" /></td>
<td width = "100">
<asp:TextBox runat="server" ID="txtBouncesPerHour" Text="0" Width="80px" CssClass="form-control" />
<asp:RangeValidator Type="Integer" runat="server" ID="valBouncesPerHour" ControlToValidate="txtBouncesPerHour"
MinimumValue="0" Display="None" />
<asp:RequiredFieldValidator ID="reqValBouncesPerHour" runat="server" ControlToValidate="txtBouncesPerHour"
Display="None" />
</td>
<td align="left" width = "10">
<asp:CheckBox runat="server" ID="cbBouncesPerHour" />
</td>
<td width = "50" align="left"><asp:Label ID="lbBouncesPerHourEnabled" runat="server" meta:resourcekey="lbEnabled" /></td>
</tr>
</table>
| 65.533333
| 190
| 0.62394
|
19af96fa7c901b4a18e3048f06e19759568569fa
| 1,236
|
aspx
|
ASP
|
XlsIO/Sparklines.aspx
|
syncfusion/file-formats-aspnet-ej1-demos
|
60bd4aef8792980c804eb3ede1fd5d013830faf2
|
[
"Net-SNMP",
"Xnet",
"Info-ZIP"
] | 3
|
2018-11-14T12:05:16.000Z
|
2022-01-24T04:43:37.000Z
|
XlsIO/Sparklines.aspx
|
syncfusion/aspnet-ej1-demos
|
2b6f8494be547cdf44b778e92cdf8952f23d7b24
|
[
"Net-SNMP",
"NBPL-1.0",
"Xnet",
"Info-ZIP"
] | null | null | null |
XlsIO/Sparklines.aspx
|
syncfusion/aspnet-ej1-demos
|
2b6f8494be547cdf44b778e92cdf8952f23d7b24
|
[
"Net-SNMP",
"NBPL-1.0",
"Xnet",
"Info-ZIP"
] | 5
|
2019-04-04T15:55:39.000Z
|
2021-04-08T11:00:44.000Z
|
<%@ Page Title="XlsIO-Sparklines-ASP.NET-SYNCFUSION" MasterPageFile="~/samplebrowser.master" Language="C#" AutoEventWireup="true"
CodeFile="Sparklines.aspx.cs" Inherits="WebSampleBrowser.XlsIO.Sparklines" %>
<asp:content id="Content2" contentplaceholderid="ControlsSection" runat="server">
<p>
Essential XlsIO has APIs for creating sparkline. The <strong>SparklineGroup</strong>
class represents the sparklines in memory. This object can be used to format and
modify sparkline settings; it is similar to modifying sparkline properties using
Excel.
</p>
<br />
<p>
Click the button to view an Excel spreadsheet generated by Essential XlsIO.
Please note that Microsoft Excel Viewer or Microsoft Excel is required to view the resultant document.
</p>
<br />
<div>
<table id="PanelTable" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center">
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Create Document"
Width="200px" />
</td>
</tr>
</table>
</div>
</asp:content>
| 42.62069
| 131
| 0.622977
|
2d4c9104579f01bf2b770761193876dbe965d1d5
| 8,803
|
aspx
|
ASP
|
DTIAdminPanel/DTIAdminPanel/PageList.aspx
|
Micmaz/DTIControls
|
2b3137a20447fd66d5819e3d400b23119fe18d37
|
[
"MIT"
] | null | null | null |
DTIAdminPanel/DTIAdminPanel/PageList.aspx
|
Micmaz/DTIControls
|
2b3137a20447fd66d5819e3d400b23119fe18d37
|
[
"MIT"
] | null | null | null |
DTIAdminPanel/DTIAdminPanel/PageList.aspx
|
Micmaz/DTIControls
|
2b3137a20447fd66d5819e3d400b23119fe18d37
|
[
"MIT"
] | null | null | null |
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="PageList.aspx.vb" Inherits="DTIAdminPanel.PageList" %>
<%@ Register Assembly="DTIControls" Namespace="DTIMiniControls" TagPrefix="cc1" %>
<!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" >
<script
src="https://code.jquery.com/jquery-1.3.2.min.js"
integrity="sha256-yDcKLQUDWenVBazEEeb0V6SbITYKIebLySKbrTp2eJk="
crossorigin="anonymous" ></script>
<head runat="server">
<title>Page List</title>
</head>
<body>
<form id="form1" runat="server">
<script type="text/javascript" src="<%=BaseClasses.Scripts.ScriptsURL()%>/DTIAdminPanel/pagelist.js"></script>
<link rel="stylesheet" type="text/css" href='<%=BaseClasses.Scripts.ScriptsURL()%>/DTIAdminPanel/iframe-default.css' />
<link rel="stylesheet" type="text/css" href='<%=BaseClasses.Scripts.ScriptsURL()%>/DTIAdminPanel/DTIAdminPanel.css' />
<asp:HiddenField ID="HiddenField1" runat="server" />
<asp:HiddenField ID="hfMenus" runat="server" />
<asp:HiddenField ID="hfPages" runat="server" />
<asp:HiddenField ID="hfRefresh" runat="server" />
<div>
<table style="width:100%">
<tr>
<td colspan="2"style="background: url('<%=BaseClasses.Scripts.ScriptsURL()%>/DTIAdminPanel/Gradiant2.jpg') repeat-y ;">
<h2 style="margin-top: 0px; margin-bottom: 0px;"><span style="float:left; ">Page List</span></h2>
<span style="float:left"><label style="padding-left:50px;" id="lblurl" runat="server"></label></span>
<span style="float:right"></span>
</td>
<td colspan="1">
<%-- <asp:Button ID="Button1" runat="server" Text="Rename Sortables" Width="122px" />--%></td>
<td colspan="1">
<asp:Button ID="btnSave" runat="server" Text="Save" /></td>
</tr>
<tr>
<td >
Menu Items
<cc1:ToolTip ID="tooltip2" runat="server" DropShadow="true" HtmlTag="span" Text="" >
This tree represents how your menu will look and behave
</cc1:ToolTip></td>
<td>
Pages
<cc1:ToolTip ID="tooltip1" runat="server" DropShadow="true" HtmlTag="span" Text="" >
This tree represents all the available pages in the site. To add a page to the menu
simply drag the page and drop it into
the Menu Items tree</cc1:ToolTip></td>
<td>
Add Page
</td>
<td style="width: 200px;" valign="top">
You can right click any item in the Page List tree or the Menu Items tree to perform
more functions like duplicating pages
</td>
</tr>
<tr>
<td >
<img alt="expand" style="cursor:pointer" src="<%=BaseClasses.Scripts.ScriptsURL()%>/DTIAdminPanel/add.png" onclick="$.tree.reference('tlMenuItems').open_all();" />
<img alt="collapse" style="cursor:pointer" src="<%=BaseClasses.Scripts.ScriptsURL()%>/DTIAdminPanel/remove.png" onclick="$.tree.reference('tlMenuItems').close_all();" />
</td>
<td style="vertical-align:top;">
<img alt="expand" style="cursor:pointer" src="<%=BaseClasses.Scripts.ScriptsURL()%>/DTIAdminPanel/add.png" onclick="$.tree.reference('tlPages').open_all();" />
<img alt="collapse" style="cursor:pointer" src="<%=BaseClasses.Scripts.ScriptsURL()%>/DTIAdminPanel/remove.png" onclick="$.tree.reference('tlPages').close_all();" />
</td>
<td valign="top">
</td>
<td valign="top">
</td>
</tr>
<tr>
<td style="background: url('<%=BaseClasses.Scripts.ScriptsURL()%>/DTIAdminPanel/Gradiant1.jpg') repeat-x ;" valign="top">
<div style="height:310px; overflow: auto">
<cc1:TreeList ID="tlMenuItems" runat="server" CssClass="demo"
CheckStyle="None" MultiTreeEnabled="true" OnSelectCallBack="showMenuLink"
NewNodeText="New MenuItem" EmptyNodeText="Drag/Drop a Page"
CreateMenuText="Create Item" OnDropCallBack="Dropped" MultiSelection="ctrl"
AutoInsertOnDrop="false" onCreateCallBack="doMICreate"
OnLoadCallBack="function(tree) {tree.close_all();}" />
</div>
</td>
<td style="background: url('<%=BaseClasses.Scripts.ScriptsURL()%>/DTIAdminPanel/Gradiant1.jpg') repeat-x ;" valign="top" rowspan="3">
<div style="height:310px; overflow: auto">
<cc1:TreeList ID="tlPages" runat="server" CssClass="demo"
CheckStyle="None" MultiTreeEnabled="false"
Drag_Copy="on" OnLoadCallBack="function(tree) {tree.close_all();}"
NewNodeText="New Folder" EmptyNodeText="No Pages"
CreateMenuText="Create Folder" onCreateCallBack="doPLCreate"
OnSearchCallBack="search" OnRenameCallBack="renamePL" />
</div>
<asp:Button ID="btnAddStatic" runat="server" Text="Button" />
</td>
<td rowspan="3" style="height: 200px; text-align: left;" valign="top">
<table style="background: url('<%=BaseClasses.Scripts.ScriptsURL()%>/DTIAdminPanel/Gradiant2.jpg') repeat-y ;">
<%-- <tr>
<td colspan="2">
<asp:RadioButtonList ID="rblTemplate" runat="server" RepeatDirection="Horizontal">
<asp:ListItem Selected="True" Value="1">Full Page</asp:ListItem>
<asp:ListItem Value="2">2 Columns</asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>--%>
<tr>
<td valign="top">
Name:</td>
<td>
<asp:TextBox ID="tbPageName" runat="server" onkeyup="removeSpaces();"></asp:TextBox>
</td>
</tr>
<tr>
<td>
Master Page:</td>
<td>
<asp:DropDownList ID="ddlMasterPage" runat="server">
</asp:DropDownList></td>
</tr>
<tr>
<td align="left" colspan="2">
<asp:Label ID="lblError" runat="server" ForeColor="red" Visible="false">Page Names must be Unique</asp:Label>
<asp:Button ID="btnAdd" runat="server" Text="Add" /></td>
</tr>
</table>
</td>
<td rowspan="3" style="text-align:left" valign="top">
</td>
</tr>
<tr>
<td colspan="3" valign="top">
<span style="visibility:hidden">.</span><label id="lbl" runat="server"></label>
</td>
<td colspan="1" valign="top">
</td>
</tr>
</table>
<div style="visibility:hidden"><asp:Button ID="btnDuplicate" runat="server" Text="Dup" />
</div>
</div>
</form>
</body>
</html>
| 62.878571
| 206
| 0.45405
|
c650fdcffa73c64d27fe6ec2c24a532d361fbf2a
| 13,793
|
aspx
|
ASP
|
1-WebApplication/AdevicoWeb/Generici/ListaDistribuzione.aspx
|
EdutechSRL/Adevico
|
311e0d53115348d2a143d49260e87c655efbb7b6
|
[
"MIT"
] | 1
|
2020-05-14T00:38:23.000Z
|
2020-05-14T00:38:23.000Z
|
1-WebApplication/AdevicoWeb/Generici/ListaDistribuzione.aspx
|
EdutechSRL/Adevico
|
311e0d53115348d2a143d49260e87c655efbb7b6
|
[
"MIT"
] | null | null | null |
1-WebApplication/AdevicoWeb/Generici/ListaDistribuzione.aspx
|
EdutechSRL/Adevico
|
311e0d53115348d2a143d49260e87c655efbb7b6
|
[
"MIT"
] | null | null | null |
<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/AjaxPortal.Master" CodeBehind="ListaDistribuzione.aspx.vb" Inherits="Comunita_OnLine.ListaDistribuzione" %>
<%@ MasterType VirtualPath="~/AjaxPortal.Master" %>
<%@ Register Src="UC_MailingList/UC_MailingList.ascx" TagName="UC_MailingList" TagPrefix="uc1" %>
<%--
<%@ Register TagPrefix="FOOTER" TagName="CtrLFooter" Src="./../uc/footer2.ascx" %>--%>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<link href="./../dhtmlcentral.css" rel="STYLESHEET" type="text/css" />
<link href="./../dhtmlcentral.css" rel="STYLESHEET" type="text/css" />
<style type="text/css">
/*FireFox*/
.IndirizzoMail {
display:block;
float:left;
min-width:415px;
}
/*Internet Explorer*/
* html .IndirizzoMail {
display:block;
float:left;
width:415px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPHservice" runat="server">
<table cellspacing="0" cellpadding="0" align="center" border="0" width="900px">
<tr class="contenitore">
<td colspan="3">
<table cellspacing="0" cellpadding="0" width="900" border="0">
<%-- <tr>
<td class="RigaTitolo" align="left">
<asp:Label ID="LBTitolo" Runat="server">Servizio Mailing List</asp:Label>
</td>
</tr>--%>
<tr>
<td align="center">
<br /><br />
<asp:Panel ID="PNLpermessi" Runat="server" Visible="false" HorizontalAlign="Center">
<table align="center">
<tr>
<td height="50"> </td>
</tr><tr>
<td align="center">
<asp:Label id="LBNopermessi" Runat="server" CssClass="messaggio">Non si dispone dei permessi necessari a visualizzare la pagina.</asp:Label>
</td>
</tr><tr>
<td height="50"> </td>
</tr>
</table>
</asp:Panel>
<asp:Panel ID="PNLcontenuto" Runat="server" HorizontalAlign="Center" width="900px">
<table cellpadding="5px" cellspacing="0px">
<tr>
<td style="width: 62px" align="center">
<asp:label id="LBfrom" runat="server" text="Da:" CssClass="titolo_campoSmall"></asp:label>
</td><td>
<asp:textbox id="TXBFrom" runat="server" ReadOnly="true" Width="450" Columns="60" CssClass="Testo_Mail"></asp:textbox>
</td>
</tr><tr>
<td class="BgLavender" style="width: 62px;" align="center">
<asp:label id="LBa" runat="server" text="A:" CssClass="titolo_campoSmall"></asp:label>
</td><td class="BgLavender" style="padding:5px">
<asp:Label ID="LBL_DestMail" CssClass="testo_campoSmall" runat="server">E' possibile selezionare...</asp:Label>
<br />
<asp:Panel ID="Panel1" runat="server" ScrollBars="Vertical" Width="850px" Height="100px" BorderColor="darkBlue" BorderWidth="1px" BackColor="white">
<asp:CheckBoxList ID="CBL_Liste" runat="server" RepeatColumns="3" RepeatDirection="Horizontal" Width="100%" class="testo_campoSmall"></asp:CheckBoxList>
</asp:Panel>
<br />
<asp:Label ID="LBL_NoListe" runat="server" class="testo_campoSmall">Nessuna lista presente.</asp:Label>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<asp:CheckBox ID="Cbx_ShowNominativi" runat="server" AutoPostBack="true" Text="Visualizza Destinatari" class="testo_campoSmall"/>
<asp:Label ID="LblErrore_Dest" CssClass="errore" Runat="server" Visible="false"></asp:Label>
</td><td align="right">
<asp:Button ID="Btn_ModificaLista" runat="server" Text="Modifica lista" CssClass="PulsanteFiltro" CausesValidation="false" />
</td>
</tr>
</table>
<asp:Label ID="LBL_Nominativi" runat="server" CssClass="titolo_campoSmall"></asp:Label>
<asp:Panel ID="PNL_Destinatari" runat="server" ScrollBars="Vertical" Width="850px" Height="100px" BorderColor="darkBlue" BorderWidth="1px" BackColor="white">
<div style="display: block; width:830px;" class="TestoCampoSmall">
<asp:Repeater ID="RPT_Address" runat="server">
<ItemTemplate>
<div style="display: inline;">
<div class="IndirizzoMail">
<div style="display:inline;" class="titolo_campoSmall">
<%# DataBinder.Eval(Container.DataItem, "DisplayName") %>
</div> - <div style="display:inline;" class="testo_campoSmall">
<%# DataBinder.Eval(Container.DataItem, "Address") %>
</div>
</div>
</div>
</ItemTemplate>
</asp:Repeater>
</div>
</asp:Panel>
<br />
<asp:Button id="Btn_AggiornaDestinatari" runat="server" CssClass="PulsanteFiltro" Text="Aggiorna" CausesValidation="false"></asp:Button>
</td>
</tr>
<tr>
<td style="width: 62px" align="center">
<asp:label id="LBobj" runat="server" text="Oggetto:" CssClass="titolo_campoSmall"></asp:label>
</td><td>
<%--<asp:Label id="LBerrore" Runat="server" CssClass="errore"></asp:Label>--%>
<asp:textbox id="TXBObj" runat="server" MaxLength="100" Columns="97" Width="830" CssClass="Testo_campo_obbligatorio"></asp:textbox>
<asp:RequiredFieldValidator ID="RFV_Subject" runat="server" ControlToValidate="TXBObj" ErrorMessage="*"></asp:RequiredFieldValidator>
</td>
</tr><tr>
<td style="width: 62px" align="center">
<asp:label id="LBattach" runat="server" text="Allegati:" CssClass="titolo_campoSmall"></asp:label>
</td><td>
<input id="fileAllega" type="file" size="110" name="fileAllega" runat="server" class="PulsanteFiltro"/>
<asp:button id="BTallega" Runat="server" Text="Allega" CssClass="PulsanteFiltro" CausesValidation="False"></asp:button>
<br />
<asp:RegularExpressionValidator ID="REVvalid" runat="server" ControlToValidate="fileAllega" ErrorMessage="Errore" ValidationExpression="^\b" />
</td>
</tr><tr>
<td style="width: 62px"> </td>
<td>
<input id="TBFrom_att" type="hidden" name="TBFrom_att" runat="server"/>
<asp:table id="TBLattach" Runat="server" BorderWidth="2" Width="850px"></asp:table>
<asp:Button ID="BTN_DelAllAttach" runat="server" Text="Clear" CssClass="PulsanteFiltro" />
<input id="TXBnascosto" type="hidden" name="TXBnascosto" runat="server"/>
<br />
<asp:Label ID="LBLErroreAttach" CssClass="errore" Runat="server" ></asp:Label>
</td>
</tr><tr>
<td valign="top" style="width: 62px" align="center">
<asp:label id="LBbody" runat="server" text="Testo:" CssClass="titolo_campoSmall"></asp:label>
</td><td>
<asp:textbox id="TXBbody" runat="server" rows="15" textmode="multiline" Width="850px" Columns="88" CssClass="Testo_Mail"></asp:textbox>
</td>
</tr><tr>
<td style="width: 62px">
</td><td>
<asp:CheckBox id="CBXcopiamittente" Runat="server" Text="Invia copia a mittente" Checked="true"></asp:CheckBox>
<asp:CheckBox id="CBXricezione" Runat="server" Text="Conferma Ricezione"></asp:CheckBox>
</td>
</tr><tr>
<td style="width: 62px">
</td><td align="right">
<input id="BTNinvia" class="PulsanteFiltro" type="button" value="Invia" name="invia" runat="server" width="80" onserverclick="SendMail" causesvalidation="true" />
</td>
</tr>
</table>
<asp:Panel id="PNLrubrica" Runat="server" width="530px" Visible="False" >
Controllo per gestione Liste -Personali-
</asp:Panel>
</asp:Panel>
<asp:panel id="PNLinviato" Runat="server" Visible="False" HorizontalAlign="Center">
<br />
<asp:Label ID="Lbl_InvioOK_t" runat="server" CssClass="messaggio"></asp:Label>
<br /> <br />
<asp:Button ID="BTN_invioOk_Back" runat="server" Text="Ok" CssClass="PulsanteFiltro" />
<br />
</asp:panel>
<asp:panel id="PNLerrore" Runat="server" Visible="False" HorizontalAlign="Center">
<br />
<asp:Label ID="Lbl_InvioErr_t" runat="server" CssClass="messaggio"></asp:Label>
<br /> <br />
<asp:Button ID="BTN_invioErr_Back" runat="server" Text="Ok" CssClass="PulsanteFiltro" />
<br />
</asp:panel>
<asp:Panel ID="PNLGestioneListe" runat="server">
<uc1:UC_MailingList ID="UC_MailingList1" runat="server" />
</asp:Panel>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3"></td>
</tr>
</table>
</asp:Content>
<%--
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Comunità On Line - Gestione Liste Mail</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1"/>
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1"/>
<meta name="vs_defaultClientScript" content="JavaScript"/>
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
//<script type="text/javascript" language="Javascript" src="./../jscript/generali.js"></script>
<link href="./../Styles.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<form id="aspnetForm" runat="server">
<asp:ScriptManager ID="SCMmanager" runat="server"></asp:ScriptManager>
<tr>
<td colspan="3" >
<div>
<HEADER:CtrLHEADER id="Intestazione" runat="server"></HEADER:CtrLHEADER>
</div>
</td>
</tr>
</form>
</body>
</html>--%>
| 59.452586
| 200
| 0.436091
|
1d5c4aae0a059f0732893ef3636dbd9ede7c827f
| 828
|
ascx
|
ASP
|
admin/Skins/banner.ascx
|
nguyenppt/tfinance0115
|
fd526f3a7218034cc5d47496c6ead181da75b93d
|
[
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
admin/Skins/banner.ascx
|
nguyenppt/tfinance0115
|
fd526f3a7218034cc5d47496c6ead181da75b93d
|
[
"Apache-2.0",
"BSD-3-Clause"
] | 1
|
2016-11-19T03:09:46.000Z
|
2016-11-19T03:09:46.000Z
|
admin/Skins/banner.ascx
|
nguyenppt/tfinance0115
|
fd526f3a7218034cc5d47496c6ead181da75b93d
|
[
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
<%@ Control Language="C#" AutoEventWireup="false" Inherits="DotNetNuke.UI.Skins.Controls.Banner" CodeFile="Banner.ascx.cs" %>
<asp:DataList id="lstBanners" runat="server" Summary="Banner Design Table">
<ItemTemplate>
<asp:Label ID="lblItem" Runat="server" Text='<%# FormatItem((int)DataBinder.Eval(Container.DataItem,"VendorId"), (int)DataBinder.Eval(Container.DataItem,"BannerId"), (int)DataBinder.Eval(Container.DataItem,"BannerTypeId"), (string)DataBinder.Eval(Container.DataItem,"BannerName"), (string)DataBinder.Eval(Container.DataItem,"ImageFileUrl"), (string)DataBinder.Eval(Container.DataItem,"Description"), (string)DataBinder.Eval(Container.DataItem,"Url"), (int)DataBinder.Eval(Container.DataItem,"Width"), (int)DataBinder.Eval(Container.DataItem,"Height")) %>'></asp:Label>
</ItemTemplate>
</asp:DataList>
| 118.285714
| 571
| 0.762077
|
a712a52b2b77a475298034cdbbb77b7e0bc00231
| 106
|
asmx
|
ASP
|
FeedbackHandler.asmx
|
pharophy/html2canvas
|
897c936da115d894db0a9c39da12bdda6a778c05
|
[
"MIT"
] | null | null | null |
FeedbackHandler.asmx
|
pharophy/html2canvas
|
897c936da115d894db0a9c39da12bdda6a778c05
|
[
"MIT"
] | null | null | null |
FeedbackHandler.asmx
|
pharophy/html2canvas
|
897c936da115d894db0a9c39da12bdda6a778c05
|
[
"MIT"
] | null | null | null |
<%@ WebService Language="C#" CodeBehind="FeedbackHandler.asmx.cs" Class="BjxFeedback.FeedbackHandler" %>
| 53
| 105
| 0.764151
|
722a2210c2246ff8918d39be24a6d02c56cb39b5
| 2,706
|
aspx
|
ASP
|
Sravani/Sravani/ViewMagazine.aspx
|
BabyManisha/College-Magzine
|
4886e109438fec67e73a13308c09fb5fe57a16de
|
[
"Apache-2.0"
] | 1
|
2016-05-06T10:26:08.000Z
|
2016-05-06T10:26:08.000Z
|
Sravani/Sravani/ViewMagazine.aspx
|
BabyManisha/College-Magzine
|
4886e109438fec67e73a13308c09fb5fe57a16de
|
[
"Apache-2.0"
] | null | null | null |
Sravani/Sravani/ViewMagazine.aspx
|
BabyManisha/College-Magzine
|
4886e109438fec67e73a13308c09fb5fe57a16de
|
[
"Apache-2.0"
] | null | null | null |
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterAdmin.master" AutoEventWireup="true" CodeFile="ViewMagazine.aspx.cs" Inherits="ViewMagazine" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderAdmin" Runat="Server">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AllowSorting="True" AutoGenerateColumns="False" CellPadding="4"
DataKeyNames="EventId" DataSourceID="SqlDataSource1" ForeColor="#333333"
GridLines="None">
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:CommandField ShowSelectButton="True" />
<asp:BoundField DataField="EventId" HeaderText="EventId" ReadOnly="True"
SortExpression="EventId" />
<asp:BoundField DataField="EventName" HeaderText="EventName"
SortExpression="EventName" />
<asp:BoundField DataField="PostedBy" HeaderText="PostedBy"
SortExpression="PostedBy" />
<asp:BoundField DataField="Description" HeaderText="Description"
SortExpression="Description" />
<asp:BoundField DataField="Venue" HeaderText="Venue" SortExpression="Venue" />
<asp:BoundField DataField="Date" HeaderText="Date"
SortExpression="Date" />
<asp:BoundField DataField="CommentedBy" HeaderText="CommentedBy"
SortExpression="CommentedBy" />
<asp:BoundField DataField="Comment" HeaderText="Comment"
SortExpression="Comment" />
</Columns>
<EditRowStyle BackColor="#2461BF" />
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#EFF3FB" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#F5F7FB" />
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
<SortedDescendingCellStyle BackColor="#E9EBEF" />
<SortedDescendingHeaderStyle BackColor="#4870BE" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:Sravani36ConnectionString %>"
SelectCommand="SELECT Events.EventId, Events.EventName, Events.RollNo AS PostedBy, Events.Description, Events.Venue, Events.Date, Comments.RollNo AS CommentedBy, Comments.Comment FROM Comments INNER JOIN Events ON Comments.EventId = Events.EventId WHERE (Events.Status = 'Yes')">
</asp:SqlDataSource>
</asp:Content>
| 56.375
| 288
| 0.691796
|
5e24740201fe0674dd3be3b355a9fce365f38cb1
| 4,699
|
aspx
|
ASP
|
pa1-skeleton/pa1-data/7/www-project.slac.stanford.edu_slac-home_Safety.aspx
|
yzhong94/cs276-spring-2019
|
a4780a9f88b8c535146040fe11bb513c91c5693b
|
[
"MIT"
] | null | null | null |
pa1-skeleton/pa1-data/7/www-project.slac.stanford.edu_slac-home_Safety.aspx
|
yzhong94/cs276-spring-2019
|
a4780a9f88b8c535146040fe11bb513c91c5693b
|
[
"MIT"
] | null | null | null |
pa1-skeleton/pa1-data/7/www-project.slac.stanford.edu_slac-home_Safety.aspx
|
yzhong94/cs276-spring-2019
|
a4780a9f88b8c535146040fe11bb513c91c5693b
|
[
"MIT"
] | null | null | null |
safety slac national accelerator laboratory slac national accelerator laboratory home research research at slac accelerator physics astrophysics and cosmology elementary particle physics materials and nanoscience molecular environmental science structural biology ultrafast science exploring slac science scientific programs scientific programs at slac particle physics and astrophysics ard atlas babar elementary particle theory exo facet fgst geant4 ilc jdem kipac larp lsst photon science lcls pulse simes ssrl suncat lcls ssrl user facilities user facilities at slac lcls ssrl becoming a user careers working at slac current openings news news center office of communications press releases slac today symmetry magazine contact about slac overview about slac about our name slac history nobel prizes slac brochures & publications mission and vision organization director's office directorates organization charts relationship with stanford community outreach public events public lecture series colloquium series science bowl tours of slac virtual visitors center internships & fellowships visiting slac maps & directions stanford guest house slac staff & users staff resources staff resources slac today emergency information lab security online time & effort system human resources computing services infomedia solutions archives & history office travel reimbursement controlled documents business information systems facilities service request research resources research resources slac research library spires scidoc user resources user facilities foreign visits & assignments slac users organization ssrl users organization lcls user site safety safety emergency information es&h medical office security site index safety at slac in case of emergency first call 911 then call 5555 see emergency contacts for more instructions slac is committed to protecting the health and safety of our staff the community and the environment as we carry out our scientific mission we believe that safety science productivity and quality are mutually supportive and that safety is integral to each job as stewards of our land slac also seeks to minimize pollution to our environment and to protect our resources and biota we are all responsible for ensuring a safe work environment at slac and our effort is steered by the environment safety and health es&h division contacting es&h es&h website es&h service desk x4554 email the safety contact anonymous safety violation report line x4641 es&h contact list before starting work at slac as a scientific community most safety issues revolve around our everyday work complete the safety comes first checklist to get the training and information you need to know before you can work at slac follow the principles of integrated safety management get acquainted with job focused information to identify and control for potential hazards contact the building manager and ask for the area hazard analysis prior to doing work in a building slac medical office our medical department provides assistance for minor injuries physical examinations counseling ergonomics and wellness programs it also maintains surveillance programs for occupational exposures for services call x2281 learn more radiation protection we support all radiological operations including shielding and safety system designs with radiation physicists field operations dosimetry and radioactive waste management for services call x4299 learn more training es&h training provides courses to aid in a safe and healthy workplace all of which meet regulatory requirements our database programs assist slac personnel in keeping current with training and supervisor requirements learn more safety engineering to support slac research we offer occupational safety services and provide personnel with specialized safety knowledge in areas such as injury and illness prevention chemical management laser safety and hoisting and rigging learn more environmental protection committed to the safety of our land as well as our people our environmental department performs both protection and restoration and provides air quality water resources and waste management including pollution prevention services learn more citizen committees at slac we believe in the integration of safety at all levels committees formed of experts from division at slac advise review and develop specific programs for safety learn more your browser does not have the ability to display inline frames you can view the content of this frame at this page slac footer your browser does not have the ability to display inline frames you can view the content of this frame at this page slac global navigation header privacy statement
| 2,349.5
| 4,698
| 0.850181
|
fda673e0209f3f921692eff29adc5f5bd9eee472
| 194
|
ascx
|
ASP
|
src/CMS/CMSWebParts/Viewers/DateTime.ascx
|
Kentico/xperience-module-intercom
|
7c8236fa3ad66ba4687dc4ed0ef3e15b7c32b88c
|
[
"MIT"
] | 1
|
2019-10-23T23:49:25.000Z
|
2019-10-23T23:49:25.000Z
|
src/CMS/CMSWebParts/Viewers/DateTime.ascx
|
Kentico/xperience-module-intercom
|
7c8236fa3ad66ba4687dc4ed0ef3e15b7c32b88c
|
[
"MIT"
] | 6
|
2019-12-03T17:26:30.000Z
|
2020-03-09T00:05:04.000Z
|
src/CMS/CMSWebParts/Viewers/DateTime.ascx
|
Kentico/xperience-module-intercom
|
7c8236fa3ad66ba4687dc4ed0ef3e15b7c32b88c
|
[
"MIT"
] | 3
|
2019-12-04T15:23:44.000Z
|
2020-04-06T17:26:16.000Z
|
<%@ Control Language="C#" AutoEventWireup="true" Inherits="CMSWebParts_Viewers_DateTime" Codebehind="~/CMSWebParts/Viewers/DateTime.ascx.cs" %>
<asp:Literal runat="server" ID="ltlDateTime" />
| 97
| 146
| 0.757732
|
fe82d1df6e47ab70333211f8fde4f7e485e794da
| 2,334
|
ascx
|
ASP
|
LRW3/LovRubWeb/Modules/Products/ReviewDisplay.ascx
|
lanekp/LovRubWeb
|
0a1cc08ee1153492db8a521da628046ff8492c57
|
[
"MIT"
] | null | null | null |
LRW3/LovRubWeb/Modules/Products/ReviewDisplay.ascx
|
lanekp/LovRubWeb
|
0a1cc08ee1153492db8a521da628046ff8492c57
|
[
"MIT"
] | null | null | null |
LRW3/LovRubWeb/Modules/Products/ReviewDisplay.ascx
|
lanekp/LovRubWeb
|
0a1cc08ee1153492db8a521da628046ff8492c57
|
[
"MIT"
] | null | null | null |
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ReviewDisplay.ascx.cs" Inherits="Modules_Products_ReviewDisplay" %>
<%@ register assembly="MagicAjax" namespace="MagicAjax.UI.Controls" tagprefix="ajax" %>
<%@ Register Assembly="Xpdt.Web.UI.Ratings" Namespace="Xpdt.Web.UI.WebControls" TagPrefix="Xpdt" %>
<ajax:AjaxPanel ID="Ajaxpanel2" runat="server">
<%
//Many thanks to Geri (rapidexposure) for fixing this!
if (product.Reviews.Count > 0) { %>
<div class="productsection">
<h5>Customer Reviews</h5>
<asp:Repeater ID="rptReviews" runat="server" OnItemCommand="PostReviewResponse">
<ItemTemplate>
<asp:Label ID="lblReviewID" runat="server" Visible="false" Text='<%#Eval("reviewID") %>'></asp:Label>
<table width="600">
<tr>
<td colspan="2">
<Xpdt:Rater ID="rvRating" runat="server"
DisplayOnly="true"
DisplayValue='<%#Convert.ToInt16(Eval("rating")) %>'
></Xpdt:Rater>
<b><%#Eval("title") %></b>, <%#Eval("PostDate") %>
</td>
</tr>
<tr>
<td colspan="2">
<b>Reviewer: <%#Eval("authorname") %></b>
</td>
</tr>
<tr>
<td colspan="3">
<%#Eval("Body") %>
</td>
</tr>
<tr>
<td colspan="2">
<h3>Was this review helpful? </h3>
<asp:Button ID="btnYes" CommandName="Yes" runat="server" Text="Yes" />
<asp:Button ID="btnNo" CommandName="No" runat="server" Text="No"/>
<b><asp:Label ID="lblThanks" runat="server"></asp:Label></b>
</td>
</tr>
</table>
</ItemTemplate>
</asp:Repeater>
</div>
<%} %>
</ajax:AjaxPanel>
| 46.68
| 126
| 0.410883
|
32ac77ff791c4d64e4a91f3253a9e84fc462791e
| 1,232
|
aspx
|
ASP
|
XlsIO/WorksheetToImage.aspx
|
syncfusion/file-formats-aspnet-ej1-demos
|
60bd4aef8792980c804eb3ede1fd5d013830faf2
|
[
"Net-SNMP",
"Xnet",
"Info-ZIP"
] | 3
|
2018-11-14T12:05:16.000Z
|
2022-01-24T04:43:37.000Z
|
XlsIO/WorksheetToImage.aspx
|
syncfusion/aspnet-ej1-demos
|
2b6f8494be547cdf44b778e92cdf8952f23d7b24
|
[
"Net-SNMP",
"NBPL-1.0",
"Xnet",
"Info-ZIP"
] | null | null | null |
XlsIO/WorksheetToImage.aspx
|
syncfusion/aspnet-ej1-demos
|
2b6f8494be547cdf44b778e92cdf8952f23d7b24
|
[
"Net-SNMP",
"NBPL-1.0",
"Xnet",
"Info-ZIP"
] | 5
|
2019-04-04T15:55:39.000Z
|
2021-04-08T11:00:44.000Z
|
<%@ Page Title="XlsIO-Worksheet To Image-ASP.NET-SYNCFUSION" MasterPageFile="~/samplebrowser.master" Language="C#" AutoEventWireup="true"
CodeFile="WorksheetToImage.aspx.cs" Inherits="WebSampleBrowser.XlsIO.WorksheetToImage" %>
<asp:content id="Content2" contentplaceholderid="ControlsSection" runat="server">
<p>
This sample demonstrates how a worksheet can be converted to an image that is subject
to few limitations. The image can be of any format, and it can also be saved as
a memory stream.
</p>
<br/>
<p>
Click the button below to convert the Excel worksheet to image using Essential XlsIO.
</p>
<div>
<table id="PanelTable" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center">
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Convert to Image" Width="150px" />
<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="Input Template" Width="150px" />
</td>
</tr>
</table>
</div>
</asp:content>
| 44
| 142
| 0.606331
|
17132e1f7e79d9b204950c7d44e4c4ceb9abfefc
| 1,990
|
aspx
|
ASP
|
mcs/class/System.Web/Test/standalone/datagrid/datagrid-sorting.aspx
|
lefb766/mono
|
4f458a4ff72bc6c5e07f82aec9040d355cbb8f5c
|
[
"Apache-2.0"
] | 469
|
2019-01-23T12:21:59.000Z
|
2022-03-10T15:50:42.000Z
|
mcs/class/System.Web/Test/standalone/datagrid/datagrid-sorting.aspx
|
pcc/mono
|
c64a76e3aae1bd6347f35c1c3bd1ace56247d4f1
|
[
"Apache-2.0"
] | 83
|
2015-07-16T01:31:41.000Z
|
2016-01-13T02:15:47.000Z
|
mcs/class/System.Web/Test/standalone/datagrid/datagrid-sorting.aspx
|
pcc/mono
|
c64a76e3aae1bd6347f35c1c3bd1ace56247d4f1
|
[
"Apache-2.0"
] | 36
|
2019-01-23T22:17:09.000Z
|
2022-01-20T15:41:34.000Z
|
<!-- bug 51424 -->
<%@ Page language="c#" %>
<%@ Import Namespace="System.Data" %>
<html>
<body>
<form runat="server">
<asp:DataGrid id="DataGrid1" runat="server" />
</form>
</body>
<script language="c#" runat="server">
void Page_Load(object sender, System.EventArgs e)
{
DataGrid1.AllowSorting = true;
if (!IsPostBack)
{
DataGrid1.DataSource = createDataTable();
DataGrid1.DataBind();
}
this.DataGrid1.SortCommand += new System.Web.UI.WebControls.DataGridSortCommandEventHandler(this.DataGrid1_SortCommand);
}
void DataGrid1_SortCommand(object sender, System.Web.UI.WebControls.DataGridSortCommandEventArgs e)
{
DataView dv = new DataView();
dv.Table = createDataTable();
dv.Sort = e.SortExpression;
DataGrid1.DataSource = dv;
DataGrid1.DataBind();
}
System.Data.DataTable createDataTable()
{
System.Data.DataTable dt = new System.Data.DataTable("Customers");
System.Data.DataColumn dc = dt.Columns.Add("ID",typeof(int));
dc.AllowDBNull = false;
dc.AutoIncrement = true;
dc.AutoIncrementSeed = 1;
dc.AutoIncrementStep = 1;
dc.Unique = true;
dt.PrimaryKey = new System.Data.DataColumn[] {dc};
dc = dt.Columns.Add("Name", typeof(String));
dc.MaxLength = 14;
dc.DefaultValue = "nobody";
dc = dt.Columns.Add("Company", typeof(String));
dc.MaxLength = 14;
dc.DefaultValue = "nonexistent";
ArrayList arr = createArrayList();
IEnumerator items = arr.GetEnumerator();
items.Reset();
while(items.MoveNext())
{
DataRow dr = dt.NewRow();
dr["Name"] = "n_" + "_" + items.Current;
dr["Company"] = "c_" + "_" + items.Current;
dt.Rows.Add(dr);
}
return dt;
}
ArrayList createArrayList()
{
ArrayList arr = new ArrayList();
arr.Add("One");
arr.Add("Two");
arr.Add("Three");
arr.Add("Four");
arr.Add("Five");
return arr;
}
</script>
</html>
| 26.891892
| 124
| 0.620603
|
0968a6b54378582717cbd2f2e75abc61b14a58b3
| 6,129
|
aspx
|
ASP
|
AjaxControlToolkit.SampleSite/DropShadow/DropShadow.aspx
|
ddooley77/ajaxcontroltoolkit
|
4c409b08b4703199fedbfc166ca5aa0147319451
|
[
"BSD-3-Clause"
] | null | null | null |
AjaxControlToolkit.SampleSite/DropShadow/DropShadow.aspx
|
ddooley77/ajaxcontroltoolkit
|
4c409b08b4703199fedbfc166ca5aa0147319451
|
[
"BSD-3-Clause"
] | null | null | null |
AjaxControlToolkit.SampleSite/DropShadow/DropShadow.aspx
|
ddooley77/ajaxcontroltoolkit
|
4c409b08b4703199fedbfc166ca5aa0147319451
|
[
"BSD-3-Clause"
] | null | null | null |
<%@ Page Title="DropShadow Sample" Language="C#" MasterPageFile="~/Samples.master" AutoEventWireup="true" CodeFile="DropShadow.aspx.cs" Inherits="DropShadow_DropShadow" %>
<asp:Content ContentPlaceHolderID="DemoHeading" runat="Server">
DropShadow Demonstration
</asp:Content>
<asp:Content ContentPlaceHolderID="DemoContent" runat="Server">
<asp:Panel ID="Panel1" runat="server" CssClass="dropShadowPanel">
<div style="padding: 10px">
First Name:
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
Last Name:
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br />
<hr />
<asp:Panel ID="CollapseHeader" runat="server" Style="cursor: pointer;">
<asp:Label ID="Label1" runat="server" Text="Label">Show Details...</asp:Label>
</asp:Panel>
<asp:Panel ID="Panel2" runat="server" Style="overflow: hidden; height: 0">
Not many details here. This is just a demo to show how the DropShadow will react
properly to changes in the size of the panel it is attached to.
</asp:Panel>
<ajaxToolkit:CollapsiblePanelExtender ID="cpe1" runat="Server"
TargetControlID="Panel2"
Collapsed="true"
CollapsedText="Show Details..."
ExpandedText="Hide Details"
TextLabelID="Label1"
ExpandControlID="CollapseHeader"
CollapseControlID="CollapseHeader"
SuppressPostBack="true" />
</div>
</asp:Panel>
<ajaxToolkit:DropShadowExtender ID="DropShadowExtender1" runat="server"
BehaviorID="DropShadowBehavior1"
TargetControlID="Panel1"
Width="5"
Rounded="true"
Radius="6"
Opacity=".75"
TrackPosition="true" />
<div style="padding: 15px;">
<label for="chkShadow">Show Drop Shadow: </label>
<input type="checkbox" checked="checked" id="chkShadow"
onclick="var b = $find('DropShadowBehavior1'); b.set_Width(chkShadow.checked ? 5 : 0);" /><br />
<label for="chkRounded">Rounded: </label>
<input type="checkbox" id="chkRounded" checked="checked"
onclick="var b = $find('DropShadowBehavior1'); b.set_Rounded(chkRounded.checked);" />
<div>
Radius:
<input type="radio" id="radius2" name="radiusValues" value="2"
onclick="$find('DropShadowBehavior1').set_Radius(this.value);" />
<label for="radius2">2</label>
<input type="radio" id="radius4" name="radiusValues" value="4"
onclick="$find('DropShadowBehavior1').set_Radius(this.value);" />
<label for="radius4">4</label>
<input type="radio" id="radius6" name="radiusValues" value="6"
onclick="$find('DropShadowBehavior1').set_Radius(this.value);" checked="checked" />
<label for="radius6">6</label>
<input type="radio" id="radius10" name="radiusValues" value="10"
onclick="$find('DropShadowBehavior1').set_Radius(this.value);" />
<label for="radius10">10</label>
</div>
<div>
Opacity:
<input type="radio" id="opacity25" name="opacityValues" value=".25"
onclick="$find('DropShadowBehavior1').set_Opacity(this.value);" />
<label for="opacity25">25%</label>
<input type="radio" id="opacity50" name="opacityValues" value=".5"
onclick="$find('DropShadowBehavior1').set_Opacity(this.value);" />
<label for="opacity50">50%</label>
<input type="radio" id="opacity75" name="opacityValues" value=".75"
onclick="$find('DropShadowBehavior1').set_Opacity(this.value);" checked="checked" />
<label for="opacity75">75%</label>
<input type="radio" id="opacity100" name="opacityValues" value="1.0"
onclick="$find('DropShadowBehavior1').set_Opacity(this.value);" />
<label for="opacity100">100%</label>
</div>
</div>
</asp:Content>
<asp:Content ContentPlaceHolderID="InfoContent" runat="Server">
<samples:InfoBlock runat="server" Collapsed="false">
<Header>DropShadow Description</Header>
<Content>
<p>
DropShadow is an extender which applies a "Drop Shadow" to a Panel. It allows you to specify
how wide the shadow is as well as how opaque it is, or if you would like rounded corners.
For pages that allow the user to move or resize the panel, the DropShadow has a mode that
will resize/reposition it to match that of the target panel at run time.
</p>
</Content>
</samples:InfoBlock>
<samples:InfoBlock runat="server">
<Header>DropShadow Properties</Header>
<Content>
<p>
The control above is initialized with this code. The properties in <em>italic</em> are optional.
</p>
<pre>
<ajaxToolkit:DropShadowExtender ID="dse" runat="server"
TargetControlID="Panel1"
<em>Opacity=".8"
Rounded="true"
TrackPosition="true"</em> />
</pre>
<ul>
<li><strong>TargetControlID</strong> - The ID of the button or link for this extender to operate on</li>
<li><strong>Width - </strong>The width, in pixels of the drop shadow. Default value is 5.</li><li><strong>Opacity </strong> - The opacity of the drop shadow, from 0 (fully transparent) to 1.0 (fully opaque). The default value is .5.</li>
<li><strong>TrackPosition</strong> - Whether the drop shadow should track the position of the panel it is attached to. Use this if the panel is absolutely positioned or will otherwise move.</li>
<li><strong>Rounded</strong> - Set to true to set rounded corners on the target and the shadow. Default is false.</li>
</ul>
</Content>
</samples:InfoBlock>
</asp:Content>
| 52.384615
| 253
| 0.599282
|
a23aff27460f7444b1b72e3b54bfff9520eb6e47
| 233
|
aspx
|
ASP
|
LPContribMvc.UI.InputBuilder.Views/InputBuilders.ArrayRemoveButton.aspx
|
surya-rakanta/LPContribMvc
|
8aabcb154079bdf9f5d9a53d91b351a9457b514a
|
[
"MIT"
] | 25
|
2015-10-09T13:07:26.000Z
|
2022-02-22T15:50:08.000Z
|
LPContribMvc.UI.InputBuilder.Views/InputBuilders.ArrayRemoveButton.aspx
|
surya-rakanta/LPContribMvc
|
8aabcb154079bdf9f5d9a53d91b351a9457b514a
|
[
"MIT"
] | null | null | null |
LPContribMvc.UI.InputBuilder.Views/InputBuilders.ArrayRemoveButton.aspx
|
surya-rakanta/LPContribMvc
|
8aabcb154079bdf9f5d9a53d91b351a9457b514a
|
[
"MIT"
] | 12
|
2015-10-09T13:07:32.000Z
|
2021-11-25T02:53:41.000Z
|
<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<PropertyViewModel<IEnumerable<TypeViewModel>>>" %>
<%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%>
<button class="removeLink<%=Model.Name %>">Remove</button>
| 77.666667
| 116
| 0.742489
|
1f15bd4a34299ba7f88a1252a76722c246d143a5
| 1,643
|
aspx
|
ASP
|
Solutions/Main/Microsoft.Cui.SampleWebsite/DesignGuide/QuickGuides/Address/Input/NonUKInput/inputboxes.aspx
|
rbirkby/mscui
|
471b618606e2910136751836837522d45f176429
|
[
"MS-PL"
] | 4
|
2018-05-10T05:04:15.000Z
|
2021-04-25T14:38:20.000Z
|
Solutions/Main/Microsoft.Cui.SampleWebsite/DesignGuide/QuickGuides/Address/Input/NonUKInput/inputboxes.aspx
|
rbirkby/mscui
|
471b618606e2910136751836837522d45f176429
|
[
"MS-PL"
] | null | null | null |
Solutions/Main/Microsoft.Cui.SampleWebsite/DesignGuide/QuickGuides/Address/Input/NonUKInput/inputboxes.aspx
|
rbirkby/mscui
|
471b618606e2910136751836837522d45f176429
|
[
"MS-PL"
] | 1
|
2020-08-29T20:52:11.000Z
|
2020-08-29T20:52:11.000Z
|
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/QIGs.master"
Codebehind="inputboxes.aspx.cs" Inherits="Microsoft.Cui.SampleWebsite.DesignGuide.QuickGuides.Address.Input.NonUKInput.InputBoxes" %>
<asp:Content ID="PageContent" ContentPlaceHolderID="QIGsPageContent" runat="server">
<div id="page">
<div id="guidance">
<div class="line">
<div class="illustration">
<table class="datavalues">
<tr>
<td class="lessnarrow">1 editable combo box</td>
<td class="wrap">For country selection</td>
</tr>
<tr>
<td class="lessnarrow">4 boxes</td>
<td>For all details up to and including the street name</td>
</tr>
<tr>
<td class="lessnarrow">1 box</td>
<td>For input of the town or city</td>
</tr>
<tr>
<td class="lessnarrow">1 box</td>
<td>For input of the postal code</td>
</tr>
</table>
</div>
<div class="guidetext">
<p class="number">ADR-0050</p>
<p>
Provide these text input boxes, in the stated order,
for input of a <span class="nowrap">non-UK</span> address
</p>
<p class="recommended">Recommended</p>
</div>
</div>
</div>
</div>
</asp:Content>
| 41.075
| 137
| 0.455873
|
d8b053315147ff306f6b48a5a157487a932cce7a
| 3,801
|
aspx
|
ASP
|
Profile/EditProfile.aspx
|
xObliterate/F.LUX
|
031483dd3619549f1908ffc112abffd464fed871
|
[
"MIT"
] | null | null | null |
Profile/EditProfile.aspx
|
xObliterate/F.LUX
|
031483dd3619549f1908ffc112abffd464fed871
|
[
"MIT"
] | null | null | null |
Profile/EditProfile.aspx
|
xObliterate/F.LUX
|
031483dd3619549f1908ffc112abffd464fed871
|
[
"MIT"
] | null | null | null |
<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeFile="EditProfile.aspx.cs" Inherits="EditProfile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div class="container white z-depth-2">
<ul class="tabs teal center">
<li class="tab col s6"><a class="white-text">Edit Profile</a></li>
</ul>
<div class="col s12">
<div class="form-container">
<asp:Panel ID="editProfilePanel" runat="server" DefaultButton="btn_update">
<div class="row">
<div class="input-field col s6">
<i class="far fa-user prefix"></i>
<asp:TextBox ID="tb_fname" CssClass="validate" runat="Server"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfv_fname" CssClass="rfv" EnableClientScript="false" ControlToValidate="tb_fname" Display="Dynamic" ForeColor="Red" runat="server" ErrorMessage="You can't leave this empty."></asp:RequiredFieldValidator>
</div>
<div class="input-field col s6">
<asp:TextBox ID="tb_lname" CssClass="validate" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfv_lname" EnableClientScript="false" ControlToValidate="tb_lname" Display="Dynamic" ForeColor="Red" runat="server" ErrorMessage="You can't leave this empty."></asp:RequiredFieldValidator>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<i class="material-icons prefix">mail_outline</i>
<asp:TextBox ID="tb_email" CssClass="validate" runat="server" TextMode="Email"></asp:TextBox>
<asp:CustomValidator ID="emailValidator" CssClass="cv" runat="server" ControlToValidate="tb_email" ErrorMessage="Email is not valid." Display="Dynamic" ForeColor="Red" OnServerValidate="emailValidator_ServerValidate"></asp:CustomValidator>
<asp:RequiredFieldValidator ID="rfv_email" CssClass="rfv" EnableClientScript="false" ControlToValidate="tb_email" Display="Dynamic" ForeColor="Red" runat="server" ErrorMessage="You can't leave this empty."></asp:RequiredFieldValidator>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<i class="material-icons prefix">smartphone</i>
<asp:TextBox ID="tb_phone" CssClass="validate" runat="server" MaxLength="8"></asp:TextBox>
<asp:CustomValidator ID="phoneValidator" CssClass="cv" runat="server" ControlToValidate="tb_phone" ErrorMessage="Mobile number is not valid" Display="Dynamic" ForeColor="Red" OnServerValidate="phoneValidator_ServerValidate"></asp:CustomValidator>
<asp:RequiredFieldValidator ID="rfv_phone" CssClass="rfv" EnableClientScript="false" ControlToValidate="tb_phone" Display="Dynamic" ForeColor="Red" runat="server" ErrorMessage="You can't leave this empty."></asp:RequiredFieldValidator>
</div>
</div>
<div class="center">
<asp:Button ID="btn_update" CssClass="btn" runat="server" Text="Update" OnClick="btn_update_Click"></asp:Button>
</div>
</asp:Panel>
</div>
</div>
</div>
</asp:Content>
| 76.02
| 275
| 0.579584
|
9df15d32d02c3677733c17efd4ff193d57378849
| 15,216
|
aspx
|
ASP
|
web/trunk/Portal/Help/Units.aspx
|
BackupTheBerlios/wc3o-svn
|
e07f358af2276b1e155c3032653ca14964ff80af
|
[
"BSD-3-Clause"
] | null | null | null |
web/trunk/Portal/Help/Units.aspx
|
BackupTheBerlios/wc3o-svn
|
e07f358af2276b1e155c3032653ca14964ff80af
|
[
"BSD-3-Clause"
] | null | null | null |
web/trunk/Portal/Help/Units.aspx
|
BackupTheBerlios/wc3o-svn
|
e07f358af2276b1e155c3032653ca14964ff80af
|
[
"BSD-3-Clause"
] | null | null | null |
<%@ Page Language="C#" MasterPageFile="~/Portal/Portal.master" CodeFile="Units.aspx.cs"
Inherits="Wc3o.Pages.Portal.Help.Units_aspx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" Runat="server"><div
style="text-align: center">
<asp:Panel ID="pnlUnit" Runat="server">
<table style="width: 80%" cellspacing="0" cellpadding="5" border="0">
<tr>
<td style="width: 200px" align="center" valign="top">
<asp:Image ID="imgUnit" Runat="server" EnableViewState="False" /><br />
<br />
<asp:Image ID="imgFace" Runat="server" EnableViewState="False" />
</td>
<td valign="top" align="center">
<h1>
<asp:Literal ID="lblName" Runat="server" EnableViewState="False"></asp:Literal></h1>
<table cellspacing="0" cellpadding="15" border="0">
<tr>
<td align="center">
<asp:Literal ID="lblGold" Runat="server" EnableViewState="False"></asp:Literal>
<asp:Image ID="imgGold" Runat="server" EnableViewState="False" />
</td>
<td align="center">
<asp:Literal ID="lblLumber" Runat="server" EnableViewState="False"></asp:Literal>
<asp:Image ID="imgLumber" Runat="server" EnableViewState="False" />
</td>
<td align="center">
<asp:Literal ID="lblFood" Runat="server" EnableViewState="False"></asp:Literal>
<asp:Image ID="imgFood" Runat="server" EnableViewState="False" />
</td>
</tr>
</table>
<br />
<table cellspacing="0" cellpadding="3" border="0">
<tr>
<td style="width: 200px" align="right">
Fraction:
</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblFraction" Runat="server" EnableViewState="False"></asp:Literal>
</td>
<td style="width: 200px" align="right">
Score:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblScore" Runat="server" EnableViewState="False"></asp:Literal>
</td>
</tr>
</table>
<br />
<table cellspacing="0" cellpadding="3" border="0">
<tr>
<td style="width: 200px" align="right">
Time to train:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblMinutes" Runat="server" EnableViewState="False"></asp:Literal>
minutes
</td>
<td style="width: 200px" align="right">
Hitpoints:
</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblHitpoints" Runat="server" EnableViewState="False"></asp:Literal>
</td>
</tr>
<tr>
<td style="width: 200px;" align="right">
Armor type:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblArmorType" Runat="server" EnableViewState="False"></asp:Literal>
</td>
<td style="width: 200px;" align="right">
Armor:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblArmor" Runat="server" EnableViewState="False"></asp:Literal>
</td>
</tr>
<tr>
<td style="width: 200px;" align="right">
Flies:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblFlies" Runat="server" EnableViewState="False"></asp:Literal>
</td>
<td style="width: 200px;" align="right">
Visible:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblVisibility" Runat="server" EnableViewState="False"></asp:Literal></td>
</tr>
<tr>
<td style="width: 200px" align="right">
Mines gold:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblForGold" Runat="server" EnableViewState="False"></asp:Literal>
</td>
<td style="width: 200px" align="right">
Chops lumber:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblForLumber" Runat="server" EnableViewState="False"></asp:Literal>
</td>
</tr>
</table>
<br />
<table cellspacing="0" cellpadding="3" border="0">
<tr>
<td style="width: 200px;" align="right">
Range:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblRange" Runat="server" EnableViewState="False"></asp:Literal>
</td>
<td style="width: 200px;" align="right">
Speed:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblSpeed" Runat="server" EnableViewState="False"></asp:Literal>
minutes</td>
</tr>
<tr>
<td style="width: 200px;" align="right">
Attack type ground:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblAttackTypeGround" Runat="server" EnableViewState="False"></asp:Literal>
</td>
<td style="width: 200px;" align="right">
Attack ground:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblAttackGround" Runat="server" EnableViewState="False"></asp:Literal>
</td>
</tr>
<tr>
<td style="width: 200px;" align="right">
Attack type air:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblAttackTypeAir" Runat="server" EnableViewState="False"></asp:Literal>
</td>
<td style="width: 200px;" align="right">
Attack air:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblAttackAir" Runat="server" EnableViewState="False"></asp:Literal>
</td>
</tr>
<tr>
<td style="width: 200px" align="right">
Cooldown:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblCoolDown" Runat="server" EnableViewState="False"></asp:Literal>
</td>
<td style="width: 200px" align="right">
</td>
<td style="width: 150px" align="left">
</td>
</tr>
<tr>
<td style="width: 200px; vertical-align: top;" align="right">
Requirements:</td>
<td style="width: 150px; vertical-align: top;" align="left">
<asp:Literal ID="lblRequirements" Runat="server" EnableViewState="False"></asp:Literal></td>
<td style="width: 200px; vertical-align: top;" align="right">
Trained at:</td>
<td style="width: 150px; vertical-align: top;" align="left">
<asp:Literal ID="lblTrainedAt" Runat="server" EnableViewState="False"></asp:Literal>
</td>
</tr>
</table>
<br />
<b>
<br />
Boni for friendly units<br />
</b>
<table cellspacing="0" cellpadding="3" border="0">
<tr>
<td style="width: 200px;" align="right">
Hitpoints:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblBonusHitpoints" Runat="server" EnableViewState="False"></asp:Literal>
%</td>
<td style="width: 200px;" align="right">
Armor:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblBonusArmor" Runat="server" EnableViewState="False"></asp:Literal>
%
</td>
</tr>
<tr>
<td style="width: 200px;" align="right">
Attack ground:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblBonusAttackGround" Runat="server" EnableViewState="False"></asp:Literal>
%</td>
<td style="width: 200px;" align="right">
Attack air:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblBonusAttackAir" Runat="server" EnableViewState="False"></asp:Literal>
%</td>
</tr>
<tr>
<td style="width: 200px;" align="right">
Range:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblBonusRange" Runat="server" EnableViewState="False"></asp:Literal>
%</td>
<td style="width: 200px;" align="right">
Cooldown:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblBonusCooldown" Runat="server" EnableViewState="False"></asp:Literal>
%</td>
</tr>
</table>
<br />
<b>Mali for hostile units</b><br />
<table cellspacing="0" cellpadding="3" border="0">
<tr>
<td style="width: 200px;" align="right">
Hitpoints:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblMalusHitpoints" Runat="server" EnableViewState="False"></asp:Literal>
%</td>
<td style="width: 200px;" align="right">
Armor:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblMalusArmor" Runat="server" EnableViewState="False"></asp:Literal>
%
</td>
</tr>
<tr>
<td style="width: 200px;" align="right">
Attack ground:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblMalusAttackGround" Runat="server" EnableViewState="False"></asp:Literal>
%</td>
<td style="width: 200px;" align="right">
Attack air:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblMalusAttackAir" Runat="server" EnableViewState="False"></asp:Literal>
%</td>
</tr>
<tr>
<td style="width: 200px;" align="right">
Range:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblMalusRange" Runat="server" EnableViewState="False"></asp:Literal>
%
</td>
<td style="width: 200px;" align="right">
Cooldown:</td>
<td style="width: 150px" align="left">
<asp:Literal ID="lblMalusCooldown" Runat="server" EnableViewState="False"></asp:Literal>
%</td>
</tr>
</table>
<br />
</td>
</tr>
</table>
<br />
<br />
</asp:Panel>
<asp:DropDownList ID="drpUnit" Runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpUnit_SelectedIndexChanged">
<asp:ListItem Value="0">- Choose a unit -</asp:ListItem>
</asp:DropDownList></div>
</asp:Content>
| 58.976744
| 125
| 0.371911
|
cb205bf5348c12d55dcd04233250b94dfb40d7d3
| 8,745
|
aspx
|
ASP
|
ETicaretSitesiStaj/Login.aspx
|
tunazkn/ETicaretSitesiStaj
|
e0de9025dd6563fdddf99ea23eedc5920e46eefd
|
[
"MIT"
] | 1
|
2021-03-15T13:02:51.000Z
|
2021-03-15T13:02:51.000Z
|
ETicaretSitesiStaj/Login.aspx
|
tunazkn/ETicaretSitesiStaj
|
e0de9025dd6563fdddf99ea23eedc5920e46eefd
|
[
"MIT"
] | null | null | null |
ETicaretSitesiStaj/Login.aspx
|
tunazkn/ETicaretSitesiStaj
|
e0de9025dd6563fdddf99ea23eedc5920e46eefd
|
[
"MIT"
] | null | null | null |
<%@ Page Title="Giriş Yap" Language="C#" MasterPageFile="~/Customer.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="ETicaretSitesiStaj.Login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.golgeliKutu2 {
box-shadow: 0px 0px 15px #c2c2c2;
width: 250px;
padding: 5px;
}
.golgeliKutu3 {
box-shadow: 0px 0px 15px #c2c2c2;
}
.labeltxtdropSize {
font-size: 16px;
Width: 140px;
Height: 25px;
}
.CercevelbltxtSira {
border: 1px solid #a1a1a1;
padding: 1px 1px 1px 1px;
font-size: 16px;
Width: 160px;
Height: 30px;
border-radius: 10px;
margin: 1px 0px 1px 1px;
}
.labeldetailsize {
width: 215px;
}
.divSize {
font-size: 16px;
}
.Cercevelbltxt {
border: 1px solid #a1a1a1;
padding: 1px 1px 1px 1px;
Width: 150px;
Height: 30px;
border-radius: 7px;
margin: 1px;
float: left;
}
.cercevecevre {
border: 2px solid #a1a1a1;
padding: 5px 2px 5px 2px;
background: green;
width: 13%;
height: 500px;
border-radius: 20px;
color: white;
margin: 5px;
float: left;
}
.filtercerceve {
border: 2px solid #a1a1a1;
padding: 5px 2px 5px 5px;
border-radius: 20px;
color: white;
float: left;
}
.cerceve {
margin: 5px;
width: 2%;
border: 2px solid #a1a1a1;
padding: 4px;
}
.btncerceve {
border: 1px solid #a1a1a1;
padding: 1px 1px 1px 1px;
border-radius: 15px;
margin: 1px;
}
.shadowcart {
box-shadow: 0 5px 12px 0 rgba(0, 0, 0, 0.5);
}
.bgmyfilter {
background-color: #dbd0d0;
}
.bgmyicerik {
background-color: #f6f3f5;
}
.bordertop20 {
border-top-left-radius: 20px;
border-top-right-radius: 20px;
}
.borderleft20 {
border-top-left-radius: 20px;
border-bottom-left-radius: 20px;
}
.borderright20 {
border-top-right-radius: 20px;
border-bottom-right-radius: 20px;
}
.border20p {
border-radius: 20px 20px;
}
.centerr {
justify-content: center;
text-align: center;
}
.shadow {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}
.girisyap {
color: black;
text-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}
.borderuyariicin {
border: 1px solid white;
}
div #girisyapin .nav-link {
color: orange;
}
/*!important yazarsan kırmızı oluyor ama hoverı gidiyor*/
div#girisyapin .nav-link:hover {
color: green !important;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<section class="m-1">
<div class="container my-4">
<div class="row">
<div class="row shadow bgmyicerik border20p my-2 mx-1" style="border: 2px solid #a1a1a1;">
<div class="col-md-5 shadow borderleft20">
<div class="col-lg-8 mb-2">
<h2 class="girisyap">Giriş Yapın</h2>
<asp:Label ID="lblLoginUyari" runat="server" Text="."
ForeColor="Transparent" Visible="false" Font-Size="13"></asp:Label>
</div>
<div class="col-lg-12">
<div class="form-group">
<asp:Label ID="lblLoginEposta" runat="server" Font-Size="13pt" Text="E-Posta Adresi"></asp:Label>
<asp:TextBox CssClass="form-control" ID="txtLoginKulEposta" runat="server" placeholder="E-Posta Adresinizi Giriniz..." title="Sisteme kayıtlı olan mail adresinizi yazınız!" AutoCompleteType="Disabled"></asp:TextBox>
</div>
<div class="form-group">
<asp:Label ID="lblLoginKulSifre" runat="server" Font-Size="13pt" Text="Şifre"></asp:Label>
<asp:TextBox CssClass="form-control" ID="txtLoginKulSifre" runat="server"
placeholder="Şifrenizi giriniz..." title="Lütfen şifrenizi giriniz!" TextMode="Password" AutoCompleteType="Disabled">
</asp:TextBox>
</div>
<div class="row form-group mx-2">
<div class="mr-auto">
<p>
<asp:CheckBox CssClass="borderuyariicin" ID="CheckBoxBeniHatirla" runat="server" BorderColor="Transparent" />Beni Hatırla
</p>
</div>
<div class="ml-auto">
<a href="#" class="nav-item" runat="server">Şifremi Unuttum</a>
</div>
</div>
<div class="form-group clearfix">
<asp:Button CssClass="btn btn-lg btn-warning btn-block text-uppercase" ID="btnLoginKulGirisYap" runat="server" Text="GİRİŞ YAP" OnClick="btnLoginKulGirisYap_Click" />
<asp:Label ID="lblULoginKulGiris" runat="server" Text="." ForeColor="Transparent" Visible="false" Font-Size="10"></asp:Label>
</div>
<div class="clear"></div>
<div class="row justify-content-center" style="margin-bottom: 40px;">
<div class="nav navbar" id="girisyapin">
Hesabınız yok mu?<a href="~/Register.aspx" class="nav-item nav-link" runat="server" style="font: bold 20px arial, verdana; font-style: italic;">Üye Olun</a>
</div>
</div>
</div>
</div>
<div class="col-md-2 shadow"></div>
<div class="col-md-5 shadow borderright20">
<div class="nav navbar navbar-nav">
<div class="nav navbar">
<br />
<br />
<br />
<h5>Kitabım.com'a Üye Olmanın Avantajları</h5>
<br />
<br />
<br />
<br />
<ul class="navbar-nav">
<li><span class="fas fa-plus mr-3"></span>Siparişlerinizin tek tıkla takibini yapabilir, tüm siparişlerinizin detaylarına ulaşabilirsiniz.
</li>
<br />
<li><span class="fas fa-plus mr-3"></span>Kişisel bilgilerinizi güncelleyebilirsiniz.
</li>
<br />
<li><span class="fas fa-plus mr-3"></span>Bizimle iletişime daha rahat geçebilirsiniz.
</li>
<br />
<li><span class="fas fa-plus mr-3"></span>Elinizeki kitapları bilgilerini girerek sitemizde satabilirsiniz.</li>
<br />
<li><span class="fas fa-plus mr-3"></span>Seçtiğiniz kitapları favorilerinize ekleyebilirsiniz.</li>
<br />
<li><span class="fas fa-plus mr-3"></span>Seçtiğiniz kitapları favorilerinize ekleyebilirsiniz.</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</asp:Content>
| 39.570136
| 247
| 0.435678
|
903fd691c8c4fb1ec1db32ea012b9122e1d92624
| 29,277
|
aspx
|
ASP
|
templates/Negocios_PlanoPB.aspx
|
mpeyrotc/govector
|
5429d538d0bcee4d95d9069dd397b3b5b35b504c
|
[
"MIT"
] | null | null | null |
templates/Negocios_PlanoPB.aspx
|
mpeyrotc/govector
|
5429d538d0bcee4d95d9069dd397b3b5b35b504c
|
[
"MIT"
] | null | null | null |
templates/Negocios_PlanoPB.aspx
|
mpeyrotc/govector
|
5429d538d0bcee4d95d9069dd397b3b5b35b504c
|
[
"MIT"
] | null | null | null |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
{% extends "base.html" %}
{% load static %}
{% block title %}
Negocios Planta Baja
{% endblock %}
{% block meta %}
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
{% endblock %}
{% block css %}
<link href="{% static 'css/planos.css' %}" rel="stylesheet">
{% endblock %}
{% block script %}
<script src="{% static 'js/planos.js' %}"></script>
{% endblock %}
{% block content %}
<form id="Form1" style="Z-INDEX: 0" method="post" runat="server">
<br>
<br>
<table cellSpacing="0" cellPadding="0" width="750" align="center">
<tr>
<td bgColor="#ffffff" height="670" vAlign="top" rowSpan="5" width="580">
<div style="MARGIN-TOP: 5px" align="justify">
<table cellSpacing="0" cellPadding="0" width="570" border="0">
<tr>
<td height="20" vAlign="middle" rowSpan="2" width="260" colSpan="2" align="center">
<P align="center"><asp:label id="Label2" style="Z-INDEX: 0" runat="server" Font-Bold="True" Width="128px" Font-Names="Arial"
Font-Size="12pt" ForeColor="#222222">PLANTA BAJA</asp:label></P>
</td>
<td style="HEIGHT: 1px" height="1" vAlign="middle" width="160" align="center"><asp:label id="lblTitulo" runat="server" Width="120px" Font-Names="Arial" Font-Size="11pt"
ForeColor="#222222" BackColor="White">Planta Baja</asp:label></td>
<td style="HEIGHT: 1px" height="1" vAlign="middle" width="160" align="center"><asp:label id="Label1" runat="server" Width="120px" Font-Names="Arial" Font-Size="11pt" ForeColor="#222222"
BackColor="White">Primer Nivel</asp:label></td>
</tr>
<tr>
<td vAlign="middle" width="160" align="center"><a href="{% url 'planoPB' %}"><img onmouseover="MM_swapImage('Image10','','../../static/Imgs/Banners/BotonPB_f2.jpg',1)"
onmouseout="MM_swapImgRestore()" id="Image10" border="0" name="Image10" src="{% static 'Imgs/Banners/BotonPB.jpg' %}" width="120" height="80"></a></td>
<td style="WIDTH: 160px" vAlign="middle" width="160" align="center"><a href="{% url 'planoPN' %}"><img onmouseover="MM_swapImage('Image11','','../../static/Imgs/Banners/BotonPN_f2.jpg',1)"
onmouseout="MM_swapImgRestore()" id="Image11" border="0" name="Image11" src="{% static 'Imgs/Banners/BotonPN.jpg' %}" width="120" height="80"></a></SPAN></td>
</tr>
<TR>
<TD vAlign="middle"></TD>
<TD style="WIDTH: 160px" vAlign="middle"> </TD>
</TR>
<tr>
<td style="HEIGHT: 480px; WIDTH: 580px" vAlign="middle" colSpan="4" align="center"><IMG id="Image6" style="Z-INDEX: 0" border="0" name="Image6" alt="" src="{% static 'Imgs/Banners/PlantaBaja.jpg' %}"
width="580" height="723" useMap="#Map"><br>
<map id="Map" name="Map">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/BPB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="POLY" alt="Snack Ote" coords="432,1,432,40,439,39,436,32,461,32,462,39,468,38,469,1,462,1,461,7,438,7,439,0,432,2">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/1PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="POLY" alt="1 PB" target="_self" coords="57,220,91,222,92,201,132,200,131,131,96,131,77,143,77,166,55,165,57,219">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/2PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="POLY" alt="2 PB" target="_self" coords="133,152,177,151,177,131,238,130,237,172,219,173,219,188,215,188,215,198,131,199,132,151">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/12PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="12 PB" coords="177,200,214,221">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/14PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="14 PB" coords="133,199,177,221">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/16PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="16 PB" coords="91,200,133,221">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/18PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="18 PB" coords="56,220,93,245">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/19PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#" shape="RECT" alt="19 PB" coords="58,243,92,263">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/APB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="POLY" alt="Snack Pte" coords="132,1,132,40,139,39,136,32,161,32,162,39,168,38,169,1,162,1,161,7,138,7,139,0,132,2">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/3PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="POLY" alt="3 PB" coords="324,129,320,177,365,176,367,220,405,221,406,197,425,198,424,151,388,150,386,131,325,130">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/4PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="4 PB" coords="425,128,489,199">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/11PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="11 PB" coords="321,176,368,220">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/8PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="8 PB" coords="406,199,426,222">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/5PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="5 PB" coords="425,198,489,222">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/20PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="20 PB" coords="110,243,133,265">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/21PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="21 PB" coords="134,244,158,265">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/39PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#" shape="RECT" alt="39 PB" coords="111,264,135,288">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/38PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="38 PB" coords="133,266,159,289">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/40PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="40 PB" coords="112,288,134,310">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/41PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="41 PB" coords="133,288,159,310">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/59PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="59 PB" coords="112,309,135,333">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/58PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="58 PB" coords="134,308,158,333">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/60PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="60 PB" coords="112,333,159,375">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/43PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="POLY" alt="43 PB" coords="179,244,180,310,219,309,219,331,261,331,262,280,235,243,180,243">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/57PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="57 PB" coords="179,309,222,334">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/62PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="62 PB" coords="180,331,262,373">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/24PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="POLY" alt="24 PB" coords="298,268,323,241,345,241,346,309,299,308,297,270">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/54PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="54 PB" coords="300,309,347,375">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/26PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="26 PB" coords="367,243,393,266">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/33PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="33 PB" coords="368,266,393,289">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/46PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="46 PB" coords="368,288,393,310">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/53PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="53 PB" coords="367,311,394,333">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/27PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="27 PB" coords="394,244,425,310">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/52PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="52 PB" coords="394,309,425,333">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/67PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="67 PB" coords="394,331,425,351">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/66PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="POLY" alt="66 PB" coords="369,333,394,332,394,352,424,353,425,373,368,373,367,333">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/28PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="POLY" alt="28 PB" coords="446,243,446,265,470,266,470,286,491,287,491,244,445,244">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/31PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="31 PB" coords="446,265,471,290">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/48PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="48 PB" coords="445,288,472,310">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/49PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="49 PB" coords="471,288,491,309">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/69PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#" shape="RECT" alt="69 PB" coords="447,310,490,353">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/71PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="71 PB" coords="446,353,472,374">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/70PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="70 PB" coords="471,352,492,374">
<area href="#" shape="RECT" coords="110,414,111,415">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/80PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="80 PB" coords="59,397,112,421">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/81PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="POLY" alt="81 PB" coords="75,420,110,420,111,451,104,461,76,419">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/82PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="POLY" alt="82 PB" coords="132,396,133,450,166,449,166,483,178,484,199,463,197,396,133,395">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/96PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="96 PB" coords="132,450,167,485">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/84PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="84 PB" coords="344,395,409,418">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/93PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="93 PB" coords="343,418,376,441">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/92PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="92 PB" coords="375,418,409,441">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/99PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="99 PB" coords="343,440,377,463">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/100PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="POLY" alt="100 PB" coords="343,463,343,484,324,502,326,527,409,527,408,441,376,441,375,462,344,462">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/111PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="POLY" alt="111 PB" coords="220,526,219,535,261,534,262,485,220,525">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/109PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="POLY" alt="109 PB" coords="263,484,262,535,306,535,305,499,291,485,264,484">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/114PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="114 PB" coords="263,536,305,577">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/113PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="113 PB" coords="241,535,262,578">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/112PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="POLY" alt="" coords="220,536,218,567,229,579,241,578,240,536,219,534">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/135PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="POLY" alt="135 PB" coords="261,617,288,643,289,659,304,660,303,601,274,600">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/86PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="86 PB" coords="432,397,461,439">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/101PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="101 PB" coords="432,438,462,462">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/106PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="" coords="431,461,463,484">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/120PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="120 PB" coords="432,484,463,527">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/87PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="87 PB" coords="461,397,548,505">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/125PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="POLY" alt="" coords="461,504,462,528,472,526,473,658,547,660,547,504,464,503">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/134PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="134 PB" coords="328,552,348,574">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/133PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="133 PB" coords="348,552,366,575">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/132PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="132 PB" coords="367,551,390,574">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/131PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="131 PB" coords="389,550,411,575">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/140PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="140 PB" coords="389,573,411,599">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/139PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="139 PB" coords="365,574,389,599">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/130PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="130 PB" coords="431,550,451,574">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/129PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="129 PB" coords="451,549,472,574">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/138PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="138 PB" coords="327,574,367,598">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/141PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="141 PB" coords="431,574,452,598">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/142PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="142 PB" coords="451,573,473,597">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/148PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="148 PB" coords="453,625,472,661">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/149PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="149 PB" coords="432,626,453,660">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/150PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="150 PB" coords="411,626,434,660">
<area onmouseover="MM_swapImage('Image6','','../../static/Imgs/Banners/PB/151PB.jpg',1)"
onmouseout="MM_swapImgRestore()" href="#"
shape="RECT" alt="151 PB" coords="389,627,412,661">
</map>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</form>
{% endblock %}
| 96.623762
| 231
| 0.427879
|
9be6876ad4ec49e4a0478b8116a4fbc74ac222d1
| 9,538
|
aspx
|
ASP
|
web/template/publish/web forms/BeyondAdmin.WebForms/Pages/FormEditors.aspx
|
teamdevelopper2/Gestonstock
|
364d43a4b8670600053f732571628b92f82ae651
|
[
"MIT"
] | null | null | null |
web/template/publish/web forms/BeyondAdmin.WebForms/Pages/FormEditors.aspx
|
teamdevelopper2/Gestonstock
|
364d43a4b8670600053f732571628b92f82ae651
|
[
"MIT"
] | null | null | null |
web/template/publish/web forms/BeyondAdmin.WebForms/Pages/FormEditors.aspx
|
teamdevelopper2/Gestonstock
|
364d43a4b8670600053f732571628b92f82ae651
|
[
"MIT"
] | null | null | null |
<%@ Page Title="Form Editors" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="FormEditors.aspx.cs" Inherits="BeyondAdmin.WebForms.Pages.FormEditors" %>
<asp:Content ID="Main" ContentPlaceHolderID="MainContent" runat="server">
<div class="row">
<div class="col-lg-12 col-sm-12 col-xs-12">
<div class="widget flat radius-bordered">
<div class="widget-header bordered-bottom bordered-themeprimary">
<span class="widget-caption">Summernote</span>
<div class="widget-buttons">
<a href="#" data-toggle="maximize">
<i class="fa fa-expand"></i>
</a>
</div>
</div>
<div class="widget-body">
<div class="widget-main no-padding">
<div id="summernote"></div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12 col-sm-12 col-xs-12">
<div class="widget flat radius-bordered">
<div class="widget-header bordered-bottom bordered-themesecondary">
<span class="widget-caption">Wysiwyg</span>
<div class="widget-buttons">
<a href="#" data-toggle="maximize">
<i class="fa fa-expand"></i>
</a>
</div>
</div>
<div class="widget-body">
<div id="alerts"></div>
<div class="btn-toolbar wysiwyg-toolbar" data-role="editor-toolbar" data-target="#editor">
<div class="btn-group">
<a class="btn btn-default dropdown-toggle" data-toggle="dropdown" title="Font"><i class="fa fa-font"></i><b class="caret"></b></a>
<ul class="dropdown-menu"></ul>
</div>
<div class="btn-group">
<a class="btn btn-default dropdown-toggle" data-toggle="dropdown" title="Font Size"><i class="fa fa-text-height"></i> <b class="caret"></b></a>
<ul class="dropdown-menu dropdown-default">
<li><a data-edit="fontSize 5"><font size="5">Huge</font></a></li>
<li><a data-edit="fontSize 3"><font size="3">Normal</font></a></li>
<li><a data-edit="fontSize 1"><font size="1">Small</font></a></li>
</ul>
</div>
<div class="btn-group">
<a class="btn btn-default" data-edit="bold" title="Bold (Ctrl/Cmd+B)"><i class="fa fa-bold"></i></a>
<a class="btn btn-default" data-edit="italic" title="Italic (Ctrl/Cmd+I)"><i class="fa fa-italic"></i></a>
<a class="btn btn-default" data-edit="strikethrough" title="Strikethrough"><i class="fa fa-strikethrough"></i></a>
<a class="btn btn-default" data-edit="underline" title="Underline (Ctrl/Cmd+U)"><i class="fa fa-underline"></i></a>
</div>
<div class="btn-group">
<a class="btn btn-default" data-edit="insertunorderedlist" title="Bullet list"><i class="fa fa-list-ul"></i></a>
<a class="btn btn-default" data-edit="insertorderedlist" title="Number list"><i class="fa fa-list-ol"></i></a>
<a class="btn btn-default" data-edit="outdent" title="Reduce indent (Shift+Tab)"><i class="fa fa-outdent"></i></a>
<a class="btn btn-default" data-edit="indent" title="Indent (Tab)"><i class="fa fa-indent"></i></a>
</div>
<div class="btn-group">
<a class="btn btn-default" data-edit="justifyleft" title="Align Left (Ctrl/Cmd+L)"><i class="fa fa-align-left"></i></a>
<a class="btn btn-default" data-edit="justifycenter" title="Center (Ctrl/Cmd+E)"><i class="fa fa-align-center"></i></a>
<a class="btn btn-default" data-edit="justifyright" title="Align Right (Ctrl/Cmd+R)"><i class="fa fa-align-right"></i></a>
<a class="btn btn-default" data-edit="justifyfull" title="Justify (Ctrl/Cmd+J)"><i class="fa fa-align-justify"></i></a>
</div>
<div class="btn-group">
<a class="btn btn-default dropdown-toggle" data-toggle="dropdown" title="Hyperlink"><i class="fa fa-link"></i></a>
<div class="dropdown-menu dropdown-arrow">
<div class="input-group">
<input class="form-control" placeholder="URL" type="text" data-edit="createLink">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Add</button>
</span>
</div>
</div>
<a class="btn btn-default" data-edit="unlink" title="Remove Hyperlink"><i class="fa fa-cut"></i></a>
</div>
<div class="btn-group">
<a class="btn btn-default" title="Insert picture (or just drag & drop)" id="pictureBtn"><i class="fa fa-picture-o"></i></a>
<input type="file" data-role="magic-overlay" data-target="#pictureBtn" data-edit="insertImage" />
</div>
<div class="btn-group">
<a class="btn btn-default" data-edit="undo" title="Undo (Ctrl/Cmd+Z)"><i class="fa fa-undo"></i></a>
<a class="btn btn-default" data-edit="redo" title="Redo (Ctrl/Cmd+Y)"><i class="fa fa-repeat"></i></a>
</div>
<input type="text" data-edit="inserttext" class="wysiwyg-voiceBtn" id="voiceBtn" x-webkit-speech="">
</div>
<div class="wysiwyg-editor" id="editor">
</div>
</div>
</div>
</div>
</div>
</asp:Content>
<asp:Content ID="Scripts" ContentPlaceHolderID="PageScriptContent" runat="server">
<!--Bootstrap wysiwig Scripts-->
<script src="/assets/js/editors/wysiwyg/jquery.hotkeys.js"></script>
<script src="/assets/js/editors/wysiwyg/prettify.js"></script>
<script src="/assets/js/editors/wysiwyg/bootstrap-wysiwyg.js"></script>
<script>
$(function () {
function initToolbarBootstrapBindings() {
var fonts = ['Serif', 'Sans', 'Arial', 'Arial Black', 'Courier',
'Courier New', 'Comic Sans MS', 'Helvetica', 'Impact', 'Lucida Grande', 'Lucida Sans', 'Tahoma', 'Times',
'Times New Roman', 'Verdana'],
fontTarget = $('[title=Font]').siblings('.dropdown-menu');
$.each(fonts, function (idx, fontName) {
fontTarget.append($('<li><a data-edit="fontName ' + fontName + '" style="font-family:\'' + fontName + '\'">' + fontName + '</a></li>'));
});
$('a[title]').tooltip({ container: 'body' });
$('.dropdown-menu input').click(function () { return false; })
.change(function () { $(this).parent('.dropdown-menu').siblings('.dropdown-toggle').dropdown('toggle'); })
.keydown('esc', function () { this.value = ''; $(this).change(); });
$('[data-role=magic-overlay]').each(function () {
var overlay = $(this), target = $(overlay.data('target'));
overlay.css('opacity', 0).css('position', 'absolute').offset(target.offset()).width(target.outerWidth()).height(target.outerHeight());
});
if ("onwebkitspeechchange" in document.createElement("input")) {
var editorOffset = $('#editor').offset();
$('#voiceBtn').css('position', 'absolute').offset({ top: editorOffset.top, left: editorOffset.left + $('#editor').innerWidth() - 35 });
} else {
$('#voiceBtn').hide();
}
};
function showErrorAlert(reason, detail) {
var msg = '';
if (reason === 'unsupported-file-type') { msg = "Unsupported format " + detail; }
else {
console.log("error uploading file", reason, detail);
}
$('<div class="alert"> <button type="button" class="close" data-dismiss="alert">×</button>' +
'<strong>File upload error</strong> ' + msg + ' </div>').prependTo('#alerts');
};
initToolbarBootstrapBindings();
$('.wysiwyg-editor').wysiwyg({ fileUploadError: showErrorAlert });
window.prettyPrint && prettyPrint();
});
</script>
<!--Summernote Scripts-->
<script src="/assets/js/editors/summernote/summernote.js"></script>
<script>
$('#summernote').summernote({ height: 300 });
</script>
</asp:Content>
| 64.013423
| 184
| 0.48333
|
1811c60b755315c39dd26b39fb010e9515f728a1
| 12,031
|
aspx
|
ASP
|
Source-Code-设客网设计师与设计院作品分享与威客门户网站/Plugins/Domain/DomName.aspx
|
zoomlacms/web022
|
cee80b3d479a8249f393896be0cf11e94c482fce
|
[
"Apache-2.0"
] | 2
|
2020-06-17T01:53:15.000Z
|
2021-01-20T07:19:52.000Z
|
Source-Code-设客网设计师与设计院作品分享与威客门户网站/Plugins/Domain/DomName.aspx
|
zoomlacms/web022
|
cee80b3d479a8249f393896be0cf11e94c482fce
|
[
"Apache-2.0"
] | null | null | null |
Source-Code-设客网设计师与设计院作品分享与威客门户网站/Plugins/Domain/DomName.aspx
|
zoomlacms/web022
|
cee80b3d479a8249f393896be0cf11e94c482fce
|
[
"Apache-2.0"
] | null | null | null |
<%@ page language="C#" autoeventwireup="true" inherits="Plugins_Domain_DomName, App_Web_fryv1wb2" masterpagefile="~/Manage/Site/SiteMaster2.master" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<asp:Content runat="server" ContentPlaceHolderID="head">
<style type="text/css">
.redStar {color: #ff0000;padding: 0 0 0 3px;}
.nochoose, .choose{ width: 100px;height: 22px;padding-bottom: 1px;padding-left: 1px;padding-right: 1px;padding-top: 1px;font-weight: normal;cursor: pointer;/*line-height: 120%;*/ font-size:14px;}
.nochoose { color: #ffffff;}
.choose{ background:#03a1f0;color: #ffffff; font-weight:bold;}
</style>
<link rel="stylesheet" href="/App_Themes/V3.css" type="text/css" media="all" />
<script type="text/javascript" src="/JS/DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/JS/Common.js"></script>
<script type="text/javascript" src="site.js"></script>
<style type="text/css">
#leftDiv {font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;width:15%;float:left;margin-top:5px;}
#leftDiv span:hover{text-decoration:underline;}
#leftDiv a:active{text-decoration:none;}
.topOption {background-color:#08C;color:#FFF;height:30px;width:100%;font-size:14px;cursor:pointer;border:solid;border-width:1px;border-color:grey;border-style:none none solid none;}
.topWord {display:block;height:30px;line-height:30px;padding-left:8px;}
.oneOption { background-color:#DFDFDF;color:#7E7E7E;height:30px;width:100%;font-size:14px;cursor:pointer;border:solid;border-width:1px;border-color:grey; border-style:none none solid none;}
.oneWord {display:block;height:30px;line-height:30px;padding-left:24px;}
.twoOption {height:30px;width:100%;font-size:14px;cursor:pointer;border:solid;border-width:1px;border-color:grey; border:none ; }
.twoWord {color:#039DC2;display:block;height:30px;line-height:30px;padding-left:40px; }
.optionChoose {background:#F2FBFD;}
#rightDiv { float:right; margin-top:5px; width:84%;}
</style>
<script type="text/javascript">
function frameInit(obj, name) {
obj.height = window.frames[name].document.body.scrollHeight * 0.95
}
function openFrame(url) {
$("#tab1Frame").attr("src", url);
}
</script>
<title>IDC管理</title>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="Content">
<div id="site_main">
<div id="leftDiv">
<div class="panel panel-primary">
<div class="panel-heading">域名管理</div>
<div class="list-group">
<a href="javascript:;" id="tabBtn1" onclick="ShowTabs(this,'tab1');openFrame('/Site/Domain.aspx?remote=true')" class="list-group-item">域名注册</a>
<a href="javascript:;" class="list-group-item" id="tabBtn3" onclick="ShowTabs(this,'tab3')">域名管理</a>
<a href="/Site/Default.aspx" target="_blank" class="list-group-item">智能建站</a>
<a href="javascript:;" class="list-group-item" id="tabBtn8" onclick="ShowTabs(this,'tab1');openFrame('MySiteManage.aspx')">站点管理</a>
<a href="javascript:;" class="list-group-item" id="tabBtn4" onclick="ShowTabs(this,'tab1');openFrame('ViewUserLog.aspx');">操作日志</a>
<a href="javascript:;" class="list-group-item" id="tabBtn6" onclick="ShowTabs(this,'tab1');openFrame('ViewProduct.aspx');">购买服务</a>
<a href="javascript:;" class="list-group-item" id="tabBtn7" onclick="ShowTabs(this,'tab1');openFrame('ViewHave.aspx')"">已购买服务</a>
<a href="javascript:;" class="list-group-item" id="tabBtn5" onclick="ShowTabs(this,'tab5')">用户充值</a>
</div>
</div>
</div>
<div id="rightDiv">
<div id="tab1">
<iframe id="tab1Frame" src="/Site/Domain.aspx?remote=true" style="width:98%;height:700px;" frameborder=0 scrolling=yes></iframe>
</div>
<div id="tab3" style="display:none;">
<div class="input-group text_300">
<asp:TextBox runat="server" CssClass="form-control" ID="keyWord" />
<span class="input-group-btn">
<asp:Button runat="server" ID="searchBtn" Text="搜索" OnClick="searchBtn_Click" CssClass="btn btn-default"/>
</span>
</div>
<ZL:ExGridView runat="server" ID="EGV" AutoGenerateColumns="false" AllowPaging="true" OnPageIndexChanging="EGV_PageIndexChanging" OnRowCommand="EGV_RowCommand"
OnRowCancelingEdit="EGV_RowCancelingEdit" PageSize="10" CssClass="table table-striped table-bordered table-hover margin_t5"
EnableTheming="False" EmptyDataText="没有任何数据!" AllowSorting="True" CheckBoxFieldHeaderWidth="3%" EnableModelValidation="True" IsHoldState="false">
<Columns>
<%-- <asp:BoundField HeaderText="ID" DataField="ID" />--%>
<asp:BoundField HeaderText="序号" DataField="ID" ReadOnly="true" />
<%-- <asp:BoundField HeaderText="站点ID" DataField="SiteID" ReadOnly="true" />--%>
<asp:TemplateField HeaderText="域名">
<ItemTemplate>
<a href="<%# "http://"+Eval("DomName") %>" target="_blank" title="打开站点"><%#Eval("DomName") %></a>
</ItemTemplate>
<EditItemTemplate>
<asp:Label runat="server" ID="lDomain" Text='<%#Eval("DomName").ToString().ToLower().Replace("www.","") %>'></asp:Label>
</EditItemTemplate>
</asp:TemplateField>
<asp:BoundField HeaderText="所属用户" DataField="UserName"/>
<%-- <asp:TemplateField HeaderText="站点名">
<ItemTemplate>
<a href="SiteDetail.aspx?SiteName=<%#Server.UrlEncode(Eval("SiteName") as string) %>" target="_blank" title="站点详情"><%#Eval("SiteName") %></a>
</ItemTemplate>
</asp:TemplateField>--%>
<asp:TemplateField HeaderText="到期日">
<ItemTemplate>
<%#DataBinder.Eval(Container.DataItem, "EndDate", "{0:yyyy年M月d日}") %>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="证书">
<ItemTemplate>
<a href="ViewCert.aspx?id=<%#Eval("ID") %>" target="_viewCert">查看证书</a>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="续费多久" Visible="false">
<ItemTemplate>
</ItemTemplate>
<EditItemTemplate>
<select name="periodDP">
<option value="1">1年</option>
<option value="2">2年</option>
<option value="3">3年</option>
<option value="4">4年</option>
<option value="5">5年</option>
</select>
</EditItemTemplate>
</asp:TemplateField>
<%-- <asp:BoundField HeaderText="到期日期" DataField="EndDate" />--%>
<asp:TemplateField HeaderText="操作">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Container.DisplayIndex %>' CommandName="Edit2">续费</asp:LinkButton>
</ItemTemplate>
<EditItemTemplate>
<asp:LinkButton runat="server" CommandArgument='<%#Container.DisplayIndex %>' CommandName="Renewals" OnClientClick="return confirm('你确定要续费该域名吗');">确定</asp:LinkButton>
<asp:LinkButton runat="server" CommandArgument='<%#Container.DisplayIndex %>' CommandName="Cancel">取消</asp:LinkButton>
</EditItemTemplate>
</asp:TemplateField>
</Columns>
</ZL:ExGridView>
</div>
<table id="templateTable" style="margin:auto;display:none;" >
<tr><td>模板名:</td><td><span class="redStar">* </span><input type="text" id="tempName" name="tempName" class="site_input" size="30" />
<asp:DropDownList runat="server" ID="tempListDP" AutoPostBack="true" OnSelectedIndexChanged="tempListDP_SelectedIndexChanged"></asp:DropDownList> </td>
</tr>
<tr>
<td>单位名称(中文名):</td>
<td><span class="redStar">* </span><input id="uname1" type="text" class="site_input" size="30" name="uname1" /></td>
</tr>
<tr>
<td>单位名称(英文名):</td>
<td><span class="redStar">* </span><input id="uname2" type="text" class="site_input" size="30" name="uname2" /></td>
</tr>
<tr>
<td></td>
<td style="color: red;">联系人中文名中至少含有1个中文字符,英文名信息中名和姓必须以空格分开。</td>
</tr>
<tr>
<td>联系人(中文名):</td>
<td><span class="redStar">* </span><input id="rname1" type="text" class="site_input" size="30" name="rname1" /></td>
</tr>
<tr>
<td>联系人(英文名):</td>
<td><span class="redStar">* </span><input id="rname2" type="text" class="site_input" size="30" name="rname2" /></td>
</tr>
<%--<tr class="CNAddr">
<td>URL指向:</td>
<td>
<span class="redStar">*</span>
<input id="urlId" type="text" class="site_input" size="30" name="url" value="http://www." />
</td>
</tr>--%>
<tr>
<td>电子邮箱:</td>
<td><span class="redStar">* </span><input id="aemail" type="text" class="site_input" size="30" name="aemail" /></td>
</tr>
<tr>
<td>所属区域:</td>
<td><span class="redStar">*</span>
<asp:DropDownList ID="DropDownList1" runat="server" class="dpclass"><asp:ListItem Value="01">中国</asp:ListItem></asp:DropDownList><br />
<span class="redStar">*</span>
<asp:DropDownList runat="server" ID="prvinceDP" ClientIDMode="Static" class="dpclass"></asp:DropDownList><br />
<span class="redStar">*</span>
<input type="text" id="cityText" name="cityText" class="site_input"/>
</td>
</tr>
<tr>
<td></td>
<td style="color: red;">通迅地址(中文)信息中必须至少含有1个中文字符</td>
</tr>
<tr>
<td>通迅地址(中文):</td>
<td><span class="redStar" style="position:relative;bottom:70px;">*</span>
<textarea id="uaddr1" rows="4" cols="28" name="uaddr1" class="site_input" style="height:150px; margin-bottom:5px;" ></textarea>
</td>
</tr>
<tr>
<td>通迅地址(英文):</td>
<td><span class="redStar" style="position:relative;bottom:70px;">*</span>
<textarea id="uaddr2" rows="4" cols="28" name="uaddr2" class="site_input" style="height:150px;" ></textarea>
</td>
</tr>
<tr>
<td>邮编:</td>
<td><span class="redStar">*</span>
<input id="uzip" type="text" name="uzip" class="site_input" size="30" />
</td>
</tr>
<tr>
<td>手机:</td>
<td><span class="redStar">*</span>
<input id="uteln" type="text" class="site_input" name="uteln" />
</td>
</tr>
<%-- <tr>
<td>传真:</td>
<td><span class="redStar">*</span>
<input id="ufaxa" type="text" class="site_input" size="6" name="ufaxa" style="width:60px;"/>--
<input id="ufaxn" type="text" class="site_input" size="12" name="ufaxn" style="width:114px;" />
</td>
</tr>--%>
<tr>
<td>操作:</td>
<td>
<asp:Button runat="server" ID="addTempBtn" Text="添加模板" Style="cursor: pointer; margin-left:12px;" CssClass="site_button" OnClick="addTempBtn_Click"
OnClientClick="return checkValue();"/>
</td>
</tr>
<tr><td colspan="2"></td></tr>
</table>
<div id="tab5" style="display:none;">
<div class="input-group" style="width:220px;">
<asp:TextBox runat="server" ID="chargeText" CssClass="form-control text_md" placeholder="请输入充值金额"/>
<span class="input-group-btn">
<asp:Button runat="server" ID="beginCharge" Text="充值" OnClick="beginCharge_Click" CssClass="btn btn-default" ValidationGroup="chargeG"/>
</span>
</div>
<asp:RequiredFieldValidator ID="RV1" runat="server" ControlToValidate="chargeText" Display="Dynamic" ForeColor="Red" ErrorMessage="不能为空!" ValidationGroup="chargeG"/>
<asp:RegularExpressionValidator ID="RV2" runat="server" ControlToValidate="chargeText" Display="Dynamic" ForeColor="Red" ErrorMessage="必须为整数" ValidationExpression="^\d+(\d+)?$" ValidationGroup="chargeG"/>
</div>
</div>
<br />
<asp:HiddenField runat="server" ID="dataField" />
</div>
<script type="text/javascript">
$(function () {
p = getParam("Page");
if (p) {
$("#tabBtn" + p).trigger("click");
}
id = $("#<%=dataField.ClientID%>").val();
if (id != "") {
$("#" + id).trigger("click");
}
$("#chargeText").keydown(function () { if (event.keyCode == 13) { $("#beginCharge").click(); return false; } });
})
function ShowTabs(obj, id) {//Div切换
$("#" + id).show().siblings().hide();
$("#<%=dataField.ClientID%>").val(obj.id);
}
function setDefaultCheck(v) {
//a = v.split(',');
//for (var i = 0; i < a.length; i++) {
// $("input:[value=" + a[i] + "]").attr("checked", "checked");
//}
}
</script>
</asp:Content>
| 48.124
| 213
| 0.64259
|
9ed4e178275db85335f919e19869f3825706325d
| 1,348
|
asp
|
ASP
|
tournament/teamlist.asp
|
TWLTriston/teamwarfare.com
|
92f7ec4529ec643602c7d02599e967e1b278d542
|
[
"MIT"
] | 1
|
2019-01-14T22:33:45.000Z
|
2019-01-14T22:33:45.000Z
|
tournament/teamlist.asp
|
TWLTriston/teamwarfare.com
|
92f7ec4529ec643602c7d02599e967e1b278d542
|
[
"MIT"
] | null | null | null |
tournament/teamlist.asp
|
TWLTriston/teamwarfare.com
|
92f7ec4529ec643602c7d02599e967e1b278d542
|
[
"MIT"
] | null | null | null |
<script language="javascript" type="text/javascript">
<!--
function fConfirmRemove(intTMLinkID, strTeamName) {
if (confirm("Are you absolutely certain you want to kick " + strTeamName + " out of the tournament?")) {
window.location = "/saveitem.asp?SaveType=TournamentRemove&TMLinkID=" + intTMLinkID + "&Tournament=<%=Server.URLEncode(strTournamentName & "")%>";
}
}
//-->
</script>
<table border="0" cellspacing="0" cellpadding="4" width="90%" align="center">
<%
strSQL = "SELECT t.TeamName, t.TeamTag, l.TMLinkID FROM lnk_t_m l INNER JOIN tbl_teams t ON t.TeamID = l.TeamID "
strSQL = strSQL & " WHERE TournamentID = '" & intTournamentID & "'"
strSQL = strSQL & " ORDER BY TeamName ASC"
ors.open strsql, oconn
if not(ors.eof and ors.bof) then
do while not(ors.eof)
%>
<tr>
<td><a href="/viewteam.asp?team=<%=Server.URLEncode(oRs.fields("TeamName").Value & "")%>"><%=Server.HTMLEncode(oRs.Fields("teamName").Value & " - " & ors.fields("teamtag").value)%></a> <%
If bSysAdmin THen %>
-- <a href="javascript:fConfirmRemove(<%=oRS.Fields("TMLinkID").Value%>, '<%=Replace(Server.HTMLEncode(oRs.Fields("TeamName").Value & ""), "'", "\'")%>');">remove from tournament</a>
<%
End If
%>
</tr>
<%
ors.movenext
loop
else
%>
<tr>
<td>No teams have signed up yet.</td>
</tr>
<%
end if
ors.nextrecordset
%>
</table>
| 33.7
| 190
| 0.654303
|
2ade78e1f665b46178efa728b4b2c273187ebd28
| 1,988
|
ascx
|
ASP
|
DesktopModules/DnnC_PicasaAlbums/Gallery.ascx
|
naineshmehta/SummerFestivalGuide
|
00f5b74a9cf94ccbbd4d96f69debf23b944b4485
|
[
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
DesktopModules/DnnC_PicasaAlbums/Gallery.ascx
|
naineshmehta/SummerFestivalGuide
|
00f5b74a9cf94ccbbd4d96f69debf23b944b4485
|
[
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
DesktopModules/DnnC_PicasaAlbums/Gallery.ascx
|
naineshmehta/SummerFestivalGuide
|
00f5b74a9cf94ccbbd4d96f69debf23b944b4485
|
[
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
<%@ Control language="vb" Inherits="DnnC.Modules.DnnC_PicasaAlbums.Gallery" AutoEventWireup="false" Explicit="True" Codebehind="Gallery.ascx.vb" %>
<asp:Panel ID="PanelNofication" runat="server" Visible="false">
<div class="dnnFormMessage dnnFormWarning"><asp:Label ID="lblError" runat="server" /></div>
</asp:Panel>
<asp:Literal ID="ltlIncludes" runat="server" />
<asp:Panel ID="PanelPicasaAlbums" runat="server">
<!-- BEGIN : Category panel -->
<asp:Panel ID="PanelAlbums" runat="server" Visible="true">
<asp:Literal ID="ltlCatSyle" runat="server" />
<div id="divAlbums" runat="server"></div>
<div style="clear: both;"></div>
<hr />
</asp:Panel>
<!-- END : Category panel -->
<!-- BEGIN : Picasa Photo list -->
<asp:Panel ID="PanelGallerifficPhotos" runat="server" Visible="false">
<div id="page">
<div id="container">
<div class="DnnC_CatDiv">
<asp:LinkButton ID="btnBackToAlbums" runat="server" CssClass="DnnC_BackToCat" />
<asp:DropDownList ID="ddlAlbums" runat="server" CssClass="DnnC_CatList" AutoPostBack="true" />
</div>
<div id="gallery" class="content">
<div id="controls" class="controls"></div>
<div class="slideshow-container">
<div id="loading" class="loader"></div>
<div id="slideshow" class="slideshow"></div>
</div>
<div id="caption" class="caption-container"></div>
</div>
<div id="thumbs" class="navigation">
<div id="divSlider" runat="server"></div>
</div>
<div style="clear: both;"></div>
</div>
</div>
</asp:Panel>
<!-- END : Picasa Photo list -->
<asp:Literal ID="ltlScript" runat="server" />
</asp:Panel>
| 37.509434
| 147
| 0.536217
|
5ea5f528bcef244ce7c18ea0976876c36fe45444
| 465
|
ascx
|
ASP
|
src/CMS/CMSFormControls/System/EnumSelector.ascx
|
Kentico/xperience-module-intercom
|
7c8236fa3ad66ba4687dc4ed0ef3e15b7c32b88c
|
[
"MIT"
] | 1
|
2021-02-22T08:29:02.000Z
|
2021-02-22T08:29:02.000Z
|
src/CMS/CMSFormControls/System/EnumSelector.ascx
|
Kentico/xperience-module-intercom
|
7c8236fa3ad66ba4687dc4ed0ef3e15b7c32b88c
|
[
"MIT"
] | 6
|
2019-12-03T17:26:30.000Z
|
2020-03-09T00:05:04.000Z
|
src/CMS/CMSFormControls/System/EnumSelector.ascx
|
Kentico/xperience-module-intercom
|
7c8236fa3ad66ba4687dc4ed0ef3e15b7c32b88c
|
[
"MIT"
] | 3
|
2019-12-04T15:23:44.000Z
|
2020-04-06T17:26:16.000Z
|
<%@ Control Language="C#" AutoEventWireup="true" Codebehind="EnumSelector.ascx.cs" Inherits="CMSFormControls_System_EnumSelector" %>
<asp:Label ID="lblError" runat="server" EnableViewState="false" CssClass="LineErrorLabel" Visible="false" />
<cms:CMSDropDownList ID="drpEnum" runat="server" CssClass="DropDownField" />
<cms:CMSRadioButtonList ID="radEnum" runat="server" Visible="false" />
<cms:CMSCheckBoxList ID="chkEnum" runat="server" Visible="false" />
| 77.5
| 135
| 0.754839
|
cc7d70d1ae192f748d292958470790bae9474f0b
| 242
|
aspx
|
ASP
|
libraries/cammWM.WebRootAdminApp/system/login/checklogin.aspx
|
CompuMasterGmbH/cammIntegrationPortal
|
be72fcd092cdc3124dd7a90312785f61f14f5e7c
|
[
"MIT"
] | 2
|
2015-11-11T15:59:27.000Z
|
2021-07-26T03:45:35.000Z
|
webs/cwmroot_aspx/system/login/checklogin.aspx
|
CompuMasterGmbH/cammIntegrationPortal
|
be72fcd092cdc3124dd7a90312785f61f14f5e7c
|
[
"MIT"
] | 56
|
2015-11-23T12:52:43.000Z
|
2019-06-04T13:03:47.000Z
|
webs/cwmroot_aspx/system/login/checklogin.aspx
|
CompuMasterGmbH/cammIntegrationPortal
|
be72fcd092cdc3124dd7a90312785f61f14f5e7c
|
[
"MIT"
] | 1
|
2021-07-26T03:45:36.000Z
|
2021-07-26T03:45:36.000Z
|
<%@ Page ValidateRequest="false" Inherits="CompuMaster.camm.WebManager.Pages.Login.CheckLogin" %>
<%@ Register TagPrefix="camm" TagName="WebManager" Src="~/system/cammWebManager.ascx" %>
<camm:WebManager id="cammWebManager" runat="server" />
| 80.666667
| 98
| 0.756198
|
749b0ea4fee0199f73204b5564ebfbff6c9b9d68
| 2,319
|
aspx
|
ASP
|
Plugins/Dynamics CRM/Aspose .NET Quote Generator/Source Code/GenerateQuote.aspx
|
Web-Dev-Collaborative/Aspose.Words-for-.NET
|
bf62ae46d38c0514485f47e9a0e6d295dcf818f1
|
[
"MIT"
] | 310
|
2016-04-18T06:50:54.000Z
|
2022-03-29T13:24:09.000Z
|
Plugins/Dynamics CRM/Aspose .NET Quote Generator/Source Code/GenerateQuote.aspx
|
xinqinglhj/Aspose.Words-for-.NET
|
d9e31afc957f1240d93d55735482131ea92161fc
|
[
"MIT"
] | 34
|
2016-04-15T16:39:43.000Z
|
2022-01-04T18:13:20.000Z
|
Plugins/Dynamics CRM/Aspose .NET Quote Generator/Source Code/GenerateQuote.aspx
|
xinqinglhj/Aspose.Words-for-.NET
|
d9e31afc957f1240d93d55735482131ea92161fc
|
[
"MIT"
] | 149
|
2016-04-08T03:30:01.000Z
|
2022-03-27T14:55:25.000Z
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GenerateQuote.aspx.cs" Inherits="Aspose.QuoteGenerator.GenerateQuote" ValidateRequest="false" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="http://cdn.ckeditor.com/4.5.3/full/ckeditor.js"></script>
<link href="AsposeStyles.css" rel="stylesheet" />
<script src="../ClientGlobalContext.js.aspx" type="text/javascript"></script>
<script src="JQuery.js"></script>
</head>
<body>
<form id="form1" runat="server">
<div id="msgDiv" runat="server" class="loaderStyle" style="display: none;">
<img alt='' src='/_imgs/AdvFind/progress.gif' /><br />
Loading...</div>
<div class="Main" style="height: 10% !important;">
<h2>Generate Document
</h2>
<div class="Label">Select Template and Generate Quote</div>
<br />
<asp:Label ID="LBL_Message" runat="server" Text="" ForeColor="Red"></asp:Label>
<div class="Width100">
<table>
<tr>
<th class="Label Width30">Template
</th>
<td class="Value">
<asp:DropDownList ID="DDL_Templates" runat="server" OnSelectedIndexChanged="DDL_Templates_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
</td>
</tr>
</table>
</div>
</div>
<textarea name="editor1" id="editor1" runat="server"></textarea>
<div class="footer">
<div class="buttons-left">
</div>
<div class="buttons-right">
<asp:Button ID="BTN_Download" runat="server" Text="Download Document" CssClass="footerbutton" OnClick="BTN_Download_Click" Visible="false" />
<asp:Button ID="BTN_Attach" runat="server" Text="Attach to Quote" CssClass="footerbutton" OnClick="BTN_Attach_Click" />
<button class="footerbutton" type="button" onclick="window.close();">
Cancel
</button>
</div>
</div>
<script>
CKEDITOR.replace("editor1");
</script>
</form>
</body>
</html>
| 41.410714
| 179
| 0.547219
|
9699080e0fff7b9c74b9dd2d043db8cd7cf79607
| 289
|
aspx
|
ASP
|
src/Samples/MvcContrib.Samples.ConventionController/Views/Shared/Rescues/DivideByZeroException.aspx
|
ignatandrei/MvcContrib
|
9a7c690bdbb5d8f0da298ca8bb78d0866ad2eaea
|
[
"Apache-2.0"
] | 1
|
2019-07-08T17:31:06.000Z
|
2019-07-08T17:31:06.000Z
|
src/Samples/MvcContrib.Samples.ConventionController/Views/Shared/Rescues/DivideByZeroException.aspx
|
torkelo/MvcContrib
|
dcc3e2a900409422190c1539404c3e52c4a6da5c
|
[
"Apache-2.0"
] | null | null | null |
src/Samples/MvcContrib.Samples.ConventionController/Views/Shared/Rescues/DivideByZeroException.aspx
|
torkelo/MvcContrib
|
dcc3e2a900409422190c1539404c3e52c4a6da5c
|
[
"Apache-2.0"
] | null | null | null |
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master"
Inherits="System.Web.Mvc.ViewPage<HandleErrorInfo>" %>
<asp:Content ContentPlaceHolderId="childContent" runat="server">
You fail at math rescue says:
<%= Model.Exception.GetBaseException().Message %>
</asp:Content>
| 41.285714
| 68
| 0.740484
|
1f3fec101a8ba513d62ae4da634846e637ee5181
| 13,835
|
ascx
|
ASP
|
SageFrame/Modules/AspxCommerce/AspxAttributesManagement/AttributesSetManage.ascx
|
AspxCommerce/AspxCommerce2.7
|
a31386825eddfae439fbf8df42dacb4743900b13
|
[
"MIT"
] | 22
|
2015-06-03T14:24:34.000Z
|
2021-02-16T15:51:36.000Z
|
SageFrame/Modules/AspxCommerce/AspxAttributesManagement/AttributesSetManage.ascx
|
AspxCommerce/AspxCommerce2.7
|
a31386825eddfae439fbf8df42dacb4743900b13
|
[
"MIT"
] | 1
|
2021-03-24T13:05:21.000Z
|
2021-03-24T13:05:21.000Z
|
SageFrame/Modules/AspxCommerce/AspxAttributesManagement/AttributesSetManage.ascx
|
AspxCommerce/AspxCommerce2.7
|
a31386825eddfae439fbf8df42dacb4743900b13
|
[
"MIT"
] | 15
|
2015-06-03T13:16:59.000Z
|
2021-01-21T05:30:24.000Z
|
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AttributesSetManage.ascx.cs"
Inherits="Modules_AspxAttributesManagement_AttributesSetManage" %>
<script type="text/javascript">
//<![CDATA[
$(function() {
$(".sfLocale").localize({
moduleKey: AspxAttributesManagement
});
});
var lblAttributeSetInfo = "<%= lblAttributeSetInfo.ClientID %>";
var umi = '<%=UserModuleId%>';
//]]>
</script>
<!-- Grid -->
<div id="divAttribSetGrid">
<div class="cssClassBodyContentBox">
<div class="cssClassCommonBox Curve">
<div class="cssClassHeader">
<h1>
<asp:Label ID="lblAttrSetsGridHeading" runat="server" Text="Manage Attribute Sets"
meta:resourcekey="lblAttrSetsGridHeadingResource1"></asp:Label>
</h1>
<div class="cssClassHeaderRight">
<div class="sfButtonwrapper">
<p>
<button type="button" id="btnAddNewSet" class="sfBtn">
<span class="sfLocale icon-addnew">Add New Set</span></button>
</p>
<div class="cssClassClear">
</div>
</div>
</div>
<div class="cssClassClear">
</div>
</div>
<div class="sfGridwrapper">
<div class="sfGridWrapperContent">
<div class="sfFormwrapper sfTableOption">
<table border="0" cellspacing="0" cellpadding="0" >
<tr>
<td>
<label class="cssClassLabel sfLocale">
Attribute Set Name:</label>
<input type="text" id="txtSearchAttributeSetName" class="sfTextBoxSmall" />
</td>
<td>
<label class="cssClassLabel sfLocale">
Active:</label>
<select id="ddlIsActive" class="sfListmenu">
<option value="" class="sfLocale">-- All -- </option>
<option value="True" class="sfLocale">Yes </option>
<option value="False" class="sfLocale">No </option>
</select>
</td>
<td>
<label class="cssClassLabel sfLocale">
In System:</label>
<select id="ddlUserInSystem" class="sfListmenu">
<option value="" class="sfLocale">--All--</option>
<option value="True" class="sfLocale">Yes</option>
<option value="False" class="sfLocale">No</option>
</select>
</td>
<td>
<button type="button" onclick="AttributeSetManage.SearchAttributeSetName()" class="sfBtn">
<span class="sfLocale icon-search">Search</span></button>
</td>
</tr>
</table>
</div>
<div class="loading">
<img id="ajaxAttributeSetMgmtImage" src="" class="sfLocale" alt="loading...." title="loadin...." />
</div>
<div class="log">
</div>
<table id="gdvAttributeSet" width="100%" border="0" cellpadding="0" cellspacing="0">
</table>
</div>
</div>
</div>
</div>
</div>
<!-- End of Grid -->
<div id="divAttribSetAddForm" style="display: none">
<div class="cssClassCommonBox Curve">
<div class="cssClassHeader">
<h1>
<asp:Label ID="lblAttrSetsFormHeading" runat="server" Text="Add New Attribute Set"
meta:resourcekey="lblAttrSetsFormHeadingResource1"></asp:Label>
</h1>
</div>
<div class="sfFormwrapper">
<div class="cssClassLanguageSettingWrapper">
<span class="sfLocale">Select Langauge:</span>
<asp:Literal ID="languageSetting" runat="server" EnableViewState="false"></asp:Literal>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="cssClassPadding tdpadding">
<tr>
<td width="10%">
<asp:Label ID="lblAttributeSetName" runat="server" Text="Name:" CssClass="cssClassLabel"
meta:resourcekey="lblAttributeSetNameResource1"></asp:Label>
</td>
<td class="cssClassTableRightCol">
<input type="text" class="sfInputbox" name="" id="txtAttributeSetName" />
<span class="cssClassRequired sfLocale">*</span>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblType" runat="server" Text="Based On:" CssClass="cssClassLabel"
meta:resourcekey="lblTypeResource1"></asp:Label>
</td>
<td class="cssClassTableRightCol">
<select class="sfListmenu" name="" id="ddlAttributeSet">
<span class="cssClassRequired sfLocale">*</span>
</select>
</td>
</tr>
</table>
</div>
<div class="sfButtonwrapper">
<p>
<button id="btnBackAdd" type="button" class="sfBtn" >
<span class="sfLocale icon-arrow-slim-w">Back</span>
</button>
</p>
<p>
<button id="btnSaveAttributeSet" type="button" class="sfBtn">
<span class="sfLocale icon-save">Save</span>
</button>
</p>
</div>
<div class="cssClassClear">
</div>
</div>
</div>
<div id="divAttribSetEditForm" style="display: none">
<div class="cssClassCommonBox Curve">
<div class="cssClassHeader">
<h1>
<asp:Label ID="lblAttributeSetInfo" runat="server" meta:resourcekey="lblAttributeSetInfoResource1"></asp:Label>
</h1>
</div>
<div class="sfFormwrapper">
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="cssClassPadding">
<tr>
<td width="35%" style="vertical-align:top;">
<h3>
<asp:Label ID="lblAttributeNameTitle" runat="server" Text="Edit Set Name" CssClass="cssClassLabel"
meta:resourcekey="lblAttributeNameTitleResource1"></asp:Label>
</h3>
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="cssClassPadding">
<tr>
<td>
<asp:Label ID="lblAttributeSetNameTitle" runat="server" Text="Name:" CssClass="cssClassLabel"
meta:resourcekey="lblAttributeSetNameTitleResource1"></asp:Label>
<span class="cssClassRequired">*</span>
</td>
<td class="cssClassTableRightCol">
<input type="text" class="sfInputbox" name="" id="txtOldAttributeSetName" />
</td>
</tr>
</table>
</td>
<td width="65%" style="vertical-align:top;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="vertical-align:top;">
<h3>
<asp:Label ID="lblGroups" runat="server" Text="Groups" CssClass="cssClassLabel" meta:resourcekey="lblGroupsResource1"></asp:Label>
</h3>
</td>
<td style="vertical-align:top;">
<div class="cssClassPaddingNone">
<p>
<button type="button" id="btnAddNewGroup" class="sfBtn">
<span class="sfLocale icon-addnew">Add New Group</span></button>
<button type="button" id="btnCollapse" class="sfBtn">
<span class="sfLocale icon-collapse">Collapse All</span></button>
<button type="button" id="btnExpand" class="sfBtn">
<span class="sfLocale icon-expand">Expand All</span></button>
</p>
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="contextMenu" id="myMenu1">
<ul>
<li id="rename" class="cssClassSeparator">
<img runat="server" id="imgRename" class="sfLocale" src="" alt="Rename" title="Rename" />
<b>Rename</b></li>
<li id="delete" class="cssClassSeparator">
<img runat="server" id="imgDelete" class="sfLocale" src="" alt="Delete" title="Delete" />
<b>Delete</b></li>
<li id="remove" class="cssClassSeparator">
<img runat="server" id="imgRemove" class="sfLocale" src="" alt="Remove" title="Remove" />
<b>Remove</b></li>
</ul>
</div>
<div id="dvTree" style="float: left;">
</div>
<%--<div>
<a href="#" id="aCollapse" onclick="$('#tree').tree('closeNode', $('#tree').find('li'));">
Collapse all</a> | <a href="#" id="aExpand" onclick="$('#tree').tree('openNode', $('#tree').find('li'));">
Expand all</a>
</div>--%>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class="sfButtonwrapper">
<p>
<button id="btnBackEdit" type="button" class="sfBtn">
<span class="sfLocale icon-arrow-slim-w">Back</span>
</button>
</p>
<p>
<button class="btnResetEdit sfBtn" type="button">
<span class="sfLocale icon-refresh">Reset</span>
</button>
</p>
<p>
<button class="btnDeleteAttributeSet sfBtn" type="button" style="display:none;">
<span class="sfLocale icon-delete">Delete</span>
</button>
</p>
<p>
<button class="btnUpdateAttributeSet sfBtn" type="button">
<span class="sfLocale icon-save">Save</span>
</button>
</p>
</div>
</div>
</div>
<div class="popupbox" id="popuprel5">
<div class="cssPopUpBody">
<div class="cssClassCloseIcon">
<button type="button" class="cssClassClose">
<span class="sfLocale">
<i class="i-close"></i>Close</span></button>
</div>
<h2>
<label id="lblGroupName" class="cssGroupName sfLocale">
Please Enter Group Name</label>
</h2>
<div class="cssClassShareList clearfix">
<label id="lblGroup" class="sfLocale">Group Name</label>
<input type="text" id="txtGroupName" name="GroupName" class="required" />
<div class="sfButtonwrapper">
<p>
<button id="btnSaveGroupName" class="sfBtn" type="button">
<span class="sfLocale icon-save">Save</span>
</button>
</p>
</div>
</div>
</div>
</div>
| 52.207547
| 218
| 0.399494
|
7de22514a2e7e44ec045e814bce03d3f782b772d
| 6,007
|
aspx
|
ASP
|
Boneyard/Site4/Pages/v4/Financial/PopupEditTransaction.aspx
|
Swarmops/Swarmops
|
6b0e34c08d504c7d64c45e772ffc24b83c71801a
|
[
"Unlicense"
] | 72
|
2015-01-06T14:58:47.000Z
|
2022-01-09T17:41:26.000Z
|
Boneyard/Site4/Pages/v4/Financial/PopupEditTransaction.aspx
|
Swarmops/Swarmops
|
6b0e34c08d504c7d64c45e772ffc24b83c71801a
|
[
"Unlicense"
] | 29
|
2015-01-02T15:48:42.000Z
|
2020-11-30T14:38:53.000Z
|
Boneyard/Site4/Pages/v4/Financial/PopupEditTransaction.aspx
|
Swarmops/Swarmops
|
6b0e34c08d504c7d64c45e772ffc24b83c71801a
|
[
"Unlicense"
] | 19
|
2015-02-04T23:58:14.000Z
|
2021-05-28T08:17:47.000Z
|
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PopupEditTransaction.aspx.cs" Inherits="Pages_v4_PopupEditTransaction" %>
<%@ Import Namespace="Telerik.Web.UI"%>
<%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %>
<%@ Register Src="~/Controls/v4/DocumentList.ascx" TagName="DocumentList" TagPrefix="pw4" %>
<!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 runat="server">
<title>Page Title Is Set In Page_Load()</title>
<link href="/Style/PirateWeb-v4.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function CloseAndRebind(args) {
GetRadWindow().Close();
GetRadWindow().BrowserWindow.refreshGrid(args);
}
function GetRadWindow()
{
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz as well)
return oWindow;
}
function CancelEdit()
{
GetRadWindow().Close();
}
</script>
</head>
<body style="background-color: #f8e7ff; padding-left:10px; padding-top:10px; padding-right: 10px; padding-bottom: 10px">
<form id="form1" runat="server" method="post">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdatePanel ID="Update1" runat="server" UpdateMode="Always">
<ContentTemplate>
Date: <telerik:RadDatePicker ID="DatePicker" runat="server" Skin="Web20" /><br /><br />
Description: <asp:TextBox ID="TextDescription" runat="server" /><br /><br />
<telerik:RadGrid ID="GridTransactionRows" runat="server"
AutoGenerateColumns="False" GridLines="None" Skin="Web20"
onitemcreated="GridTransactionRows_ItemCreated">
<HeaderContextMenu>
<CollapseAnimation Duration="200" Type="OutQuint" />
</HeaderContextMenu>
<MasterTableView DataKeyNames="Identity" ShowFooter="false">
<RowIndicatorColumn>
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn DataField="AccountName" HeaderText="Account"
UniqueName="column">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn HeaderText="Credit" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" UniqueName="TemplateColumn">
<ItemTemplate>
<asp:Label ID="LabelCredit" runat="server" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Debit" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" UniqueName="TemplateColumn1">
<ItemTemplate>
<asp:Label ID="LabelDebit" runat="server" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridButtonColumn ButtonType="ImageButton" ItemStyle-HorizontalAlign="Right"
ImageUrl="~/Images/Public/Silk/decline.png" UniqueName="column1">
</telerik:GridButtonColumn>
</Columns>
</MasterTableView>
<FilterMenu>
<CollapseAnimation Duration="200" Type="OutQuint" />
</FilterMenu>
</telerik:RadGrid>
<br />
<asp:Panel ID="PanelModifiableTransaction" runat="server">
<div style="float:right"><asp:Button runat="server" ID="ButtonAdd" Text="Add" onclick="ButtonAdd_Click" /></div>
Add Row: <asp:DropDownList ID="DropAccounts" runat="server" />, amount <asp:TextBox runat="server" ID="TextAmount" Text="0.00" /></asp:Panel>
<asp:Panel ID="PanelUnmodifiableTransaction" runat="server" Visible="false">This transaction is tied to an event and can only be modified through that event.</asp:Panel>
<hr />
</ContentTemplate>
</asp:UpdatePanel>
<asp:Panel ID="PanelDependencyDocuments" runat="server">
<b>Documents for <asp:Label ID="LabelDependency" runat="server" />:</b> <pw4:DocumentList ID="DocumentsDependency" runat="server" /><br /><br />
</asp:Panel>
<asp:Panel ID="PanelPayoutDetails" runat="server" Visible="false">
This tranasction is <b>Payout #<asp:Label ID="LabelPayoutIdentity" runat="server" /></b> (<asp:Label ID="LabelPayoutReference" runat="server" />).
</asp:Panel>
<b>Transaction Documents:</b> <pw4:DocumentList ID="DocumentList" runat="server" />
<br /><b>Upload document:</b> (png, jpg, or pdf)
<telerik:RadProgressManager ID="UploadProgressManager" runat="server"
EnableEmbeddedBaseStylesheet="False" EnableEmbeddedSkins="False" />
<div style="float:right"><asp:Button ID="ButtonUpload" runat="server" Text="Upload" onclick="ButtonUpload_Click" /> </div>
<telerik:RadUpload ID="Upload" runat="server"
BorderStyle="None"
ControlObjectsVisibility="None" InputSize="50" MaxFileInputsCount="1" Skin=""
TargetPhysicalFolder="C:\Data\Uploads\PirateWeb" />
<telerik:RadProgressArea runat="server" ID="UploadProgress"
ProgressIndicators="TotalProgressBar, TotalProgress, TotalProgressPercent"
BorderStyle="None" Skin="Web20" />
<hr />
<div style="text-align:right"><asp:Button ID="ButtonClose" runat="server"
Text="Close" onclick="ButtonClose_Click" /></div>
</form>
</body>
</html>
| 52.692982
| 178
| 0.623606
|
d6e53f312bdb682211d00b4db5e1951bb26e414b
| 104
|
asax
|
ASP
|
src/Time.Management/Global.asax
|
jfvaleroso/ASPNETBOILERPLATE-TEST
|
c0540a433fe12706cbee31ee5a6346598c26c59e
|
[
"MIT"
] | 1
|
2015-06-23T14:12:27.000Z
|
2015-06-23T14:12:27.000Z
|
src/Time.Management/Global.asax
|
jfvaleroso/ASPNETBOILERPLATE-TEST
|
c0540a433fe12706cbee31ee5a6346598c26c59e
|
[
"MIT"
] | null | null | null |
src/Time.Management/Global.asax
|
jfvaleroso/ASPNETBOILERPLATE-TEST
|
c0540a433fe12706cbee31ee5a6346598c26c59e
|
[
"MIT"
] | null | null | null |
<%@ Application Codebehind="Global.asax.cs" Inherits="Time.Management.MvcApplication" Language="C#" %>
| 52
| 103
| 0.75
|
80659e274a0c382a276002d923c5b9578090d19d
| 866
|
aspx
|
ASP
|
CMSAdmin/c3-admin/ModulePopup.aspx
|
ninianne98/carrotcake-cms
|
d1d44762f1c2a2bf28535c734b54b9250bdba2de
|
[
"MIT"
] | 23
|
2015-03-22T00:21:56.000Z
|
2020-08-02T02:06:02.000Z
|
CMSAdmin/c3-admin/ModulePopup.aspx
|
ninianne98/carrotcake-cms
|
d1d44762f1c2a2bf28535c734b54b9250bdba2de
|
[
"MIT"
] | null | null | null |
CMSAdmin/c3-admin/ModulePopup.aspx
|
ninianne98/carrotcake-cms
|
d1d44762f1c2a2bf28535c734b54b9250bdba2de
|
[
"MIT"
] | 19
|
2015-06-24T19:55:48.000Z
|
2021-05-08T14:55:59.000Z
|
<%@ Page ValidateRequest="false" Title="Module Index" Language="C#" MasterPageFile="MasterPages/MainPopup.Master" AutoEventWireup="true" CodeBehind="ModulePopup.aspx.cs"
Inherits="Carrotware.CMS.UI.Admin.c3_admin.ModulePopup" %>
<%@ MasterType VirtualPath="MasterPages/MainPopup.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="H1ContentPlaceHolder" runat="server">
Module Popup
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="BodyContentPlaceHolder" runat="server">
<asp:PlaceHolder ID="phAjax" runat="server"></asp:PlaceHolder>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="NoAjaxContentPlaceHolder" runat="server">
<asp:PlaceHolder ID="phNoAjax" runat="server"></asp:PlaceHolder>
</asp:Content>
| 57.733333
| 171
| 0.771363
|
6f193401b1a2c44c8c48e67d0a9891ebd675872c
| 3,495
|
aspx
|
ASP
|
Grid/RTL.aspx
|
syncfusion/aspnet-ej1-demos
|
2b6f8494be547cdf44b778e92cdf8952f23d7b24
|
[
"Net-SNMP",
"NBPL-1.0",
"Xnet",
"Info-ZIP"
] | 3
|
2018-11-14T12:05:16.000Z
|
2022-01-24T04:43:37.000Z
|
Grid/RTL.aspx
|
syncfusion/aspnet-ej1-demos
|
2b6f8494be547cdf44b778e92cdf8952f23d7b24
|
[
"Net-SNMP",
"NBPL-1.0",
"Xnet",
"Info-ZIP"
] | null | null | null |
Grid/RTL.aspx
|
syncfusion/aspnet-ej1-demos
|
2b6f8494be547cdf44b778e92cdf8952f23d7b24
|
[
"Net-SNMP",
"NBPL-1.0",
"Xnet",
"Info-ZIP"
] | 5
|
2019-04-04T15:55:39.000Z
|
2021-04-08T11:00:44.000Z
|
<%@ Page Title="Grid-RTL-ASP.NET-SYNCFUSION" Language="C#" MetaDescription="This demo explains how to render a datagrid in the right-to-left direction using Syncfusion ASP.NET Web Forms DataGrid control." AutoEventWireup="true" CodeBehind="RTL.aspx.cs" MasterPageFile="~/Samplebrowser.Master" Inherits="WebSampleBrowser.Grid.RTL" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="HeadSection">
<script src="../Scripts/jquery.validate.min.js" type="text/javascript"></script>
<script src="../Scripts/messages_ar.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="SampleHeading" runat="server">
<span class="sampleName">Grid / RTL</span>
</asp:Content>
<asp:Content ID="ControlContent" runat="server" ContentPlaceHolderID="ControlsSection">
<div>
<ej:Grid ID="OrdersGrid" runat="server" AllowGrouping="True" AllowFiltering="True" AllowSorting="True" AllowPaging="True"
EnableRTL="True" Locale="ar-AE">
<EditSettings AllowAdding="True" AllowDeleting="True" AllowEditing="True"></EditSettings>
<ToolbarSettings ShowToolbar="True" ToolbarItems="add,edit,delete,update,cancel"></ToolbarSettings>
<Columns>
<ej:Column Field="OrderID" HeaderText="Order ID" IsPrimaryKey="True" TextAlign="Right" Width="75">
<ValidationRule>
<ej:KeyValue Key="required" Value="true" />
</ValidationRule>
</ej:Column>
<ej:Column Field="CustomerID" HeaderText="Customer ID" Width="80">
<ValidationRule>
<ej:KeyValue Key="required" Value="true" />
<ej:KeyValue Key="minlength" Value="3" />
</ValidationRule>
</ej:Column>
<ej:Column Field="EmployeeID" HeaderText="Employee ID" TextAlign="Right" Width="75" />
<ej:Column Field="Freight" HeaderText="Freight" TextAlign="Right" Width="75" Format="{0:C}" />
<ej:Column Field="ShipCity" HeaderText="Ship City" Width="110" />
</Columns>
</ej:Grid>
</div>
</asp:Content>
<asp:Content ID="ScriptContent" runat="server" ContentPlaceHolderID="ScriptSection">
<script type="text/javascript">
ej.Grid.Locale["ar-AE"] = {
EmptyRecord: "لا توجد سجلات للعرض",
GroupDropArea: "اسحب رأس العمود هنا إلى مجموعة أعمدة لها",
DeleteOperationAlert: "لا توجد سجلات اختيارها لعملية الحذف",
EditOperationAlert: "لا توجد سجلات اختيارها لعملية تحرير",
SaveButton: "حفظ",
CancelButton: "إلغاء",
EditFormTitle: "تفاصيل",
FilterbarTitle: "الصورة خلية شريط تصفية",
GroupCaptionFormat: "سلع",
Add: "إضافة",
Edit: "تحرير",
Update: "التحديث",
Cancel: "إلغاء",
Delete: "حذف",
UnGroup: "انقر هنا لفك تجميع"
};
ej.Pager.Locale["ar-AE"] = {
pagerInfo: "{0} من {1} صفحة ({2} سلعة)",
firstPageTooltip: "انتقل إلى الصفحة الأولى",
lastPageTooltip: "انتقل إلى الصفحة الأخيرة",
nextPageTooltip: "انتقل إلى الصفحة التالية",
previousPageTooltip: "انتقل إلى الصفحة السابقة",
nextPagerTooltip: "الذهاب إلى بيجر المقبل",
previousPagerTooltip: "الذهاب إلى بيجر السابقة"
};
</script>
</asp:Content>
| 50.652174
| 334
| 0.608011
|
7ff6f9700e39c4c9ab06c30a47e7128653198f6e
| 829
|
aspx
|
ASP
|
Solutions/Main/Microsoft.Cui.SampleWebsite/DesignGuide/QuickGuides/DateTimeInput/Date/Freetext/unknown.aspx
|
rbirkby/mscui
|
471b618606e2910136751836837522d45f176429
|
[
"MS-PL"
] | 4
|
2018-05-10T05:04:15.000Z
|
2021-04-25T14:38:20.000Z
|
Solutions/Main/Microsoft.Cui.SampleWebsite/DesignGuide/QuickGuides/DateTimeInput/Date/Freetext/unknown.aspx
|
rbirkby/mscui
|
471b618606e2910136751836837522d45f176429
|
[
"MS-PL"
] | null | null | null |
Solutions/Main/Microsoft.Cui.SampleWebsite/DesignGuide/QuickGuides/DateTimeInput/Date/Freetext/unknown.aspx
|
rbirkby/mscui
|
471b618606e2910136751836837522d45f176429
|
[
"MS-PL"
] | 1
|
2020-08-29T20:52:11.000Z
|
2020-08-29T20:52:11.000Z
|
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/QIGs.master"
Codebehind="unknown.aspx.cs" Inherits="Microsoft.Cui.SampleWebsite.DesignGuide.QuickGuides.DateTimeInput.Date.Freetext.Unknown" %>
<asp:Content ID="PageContent" ContentPlaceHolderID="QIGsPageContent" runat="server">
<div id="page">
<div id="guidance">
<div class="line">
<div class="illustration">
<img src="../../images/dtc0008.png" alt="A date control containing the text 'Unknown'" />
</div>
<div class="guidetext">
<p class="number">D+Tc-0008</p>
<p>
Allow the input of 'Unknown' (or similar) to specify
dates not known to the user
</p>
<p class="mandatory">Mandatory</p>
</div>
</div>
</div>
</div>
</asp:Content>
| 36.043478
| 134
| 0.613993
|
71b9f599299e1fe78d82ced8bdecceb65aba72d4
| 1,422
|
ascx
|
ASP
|
CMS/CMSModules/Ecommerce/FormControls/Cloning/Ecommerce_AddressSettings.ascx
|
mzhokh/FilterByCategoryWidget
|
c6b83215aea4f4df607d070fe4c772bd96ee6a95
|
[
"MIT"
] | 26
|
2019-02-26T19:44:44.000Z
|
2021-07-19T01:45:37.000Z
|
CMS/CMSModules/Ecommerce/FormControls/Cloning/Ecommerce_AddressSettings.ascx
|
mzhokh/FilterByCategoryWidget
|
c6b83215aea4f4df607d070fe4c772bd96ee6a95
|
[
"MIT"
] | 34
|
2018-12-10T09:30:13.000Z
|
2020-09-02T11:14:12.000Z
|
CMS/CMSModules/Ecommerce/FormControls/Cloning/Ecommerce_AddressSettings.ascx
|
mzhokh/FilterByCategoryWidget
|
c6b83215aea4f4df607d070fe4c772bd96ee6a95
|
[
"MIT"
] | 50
|
2018-12-06T17:32:43.000Z
|
2021-11-04T09:48:07.000Z
|
<%@ Control Language="C#" AutoEventWireup="true" Codebehind="Ecommerce_AddressSettings.ascx.cs"
Inherits="CMSModules_Ecommerce_FormControls_Cloning_Ecommerce_AddressSettings" %>
<div class="form-horizontal">
<div class="form-group">
<div class="editing-form-label-cell">
<cms:LocalizedLabel AssociatedControlID="txtPersonalName" CssClass="control-label" runat="server" ID="lblPersonalName" ResourceString="customer_edit_address_edit.lblpersonalname" EnableViewState="false"
DisplayColon="true" />
</div>
<div class="editing-form-value-cell">
<cms:CMSTextBox runat="server" ID="txtPersonalName" MaxLength="100" />
</div>
</div>
<div class="form-group">
<div class="editing-form-label-cell">
<cms:LocalizedLabel AssociatedControlID="txtAddress1" CssClass="control-label" runat="server" ID="lblAddress1" ResourceString="customer_edit_address_edit.addressline1label" EnableViewState="false"
DisplayColon="true" />
</div>
<div class="editing-form-value-cell">
<cms:CMSTextBox runat="server" ID="txtAddress1" MaxLength="100" />
</div>
</div>
<div class="form-group">
<div class="editing-form-value-cell editing-form-value-cell-offset">
<cms:CMSTextBox runat="server" ID="txtAddress2" MaxLength="100" />
</div>
</div>
</div>
| 50.785714
| 214
| 0.662447
|
66e889e985e2d30b66cbfd7d148f399e729b8e98
| 166
|
ascx
|
ASP
|
Altazion.ECommerce.Controls/SampleWebSite/Controls/PointsLivraisonChoix.ascx
|
altazion/altazion-commerce-controls
|
239cab74aae0042e4b9b4c2837185ad0f6f1d434
|
[
"MIT"
] | null | null | null |
Altazion.ECommerce.Controls/SampleWebSite/Controls/PointsLivraisonChoix.ascx
|
altazion/altazion-commerce-controls
|
239cab74aae0042e4b9b4c2837185ad0f6f1d434
|
[
"MIT"
] | 2
|
2020-06-14T10:26:09.000Z
|
2020-06-14T10:26:33.000Z
|
Altazion.ECommerce.Controls/SampleWebSite/Controls/PointsLivraisonChoix.ascx
|
altazion/altazion-commerce-controls
|
239cab74aae0042e4b9b4c2837185ad0f6f1d434
|
[
"MIT"
] | null | null | null |
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PointsLivraisonChoix.ascx.cs" Inherits="CPointSoftware.ECommerce.Site.Controls.PointsLivraisonChoix" %>
| 83
| 165
| 0.807229
|
e8ae82e9ae9ca61a29ad6b0dbf908fbaf0ca1d13
| 53
|
asp
|
ASP
|
tool/project/script/components_js.asp
|
JPhilipp/QuestML
|
22260cb9de7a07f75b6a788d12ae20dfe51d0830
|
[
"MIT"
] | 2
|
2021-07-24T12:44:54.000Z
|
2021-08-19T03:00:11.000Z
|
tool/project/script/components_js.asp
|
JPhilipp/QuestML
|
22260cb9de7a07f75b6a788d12ae20dfe51d0830
|
[
"MIT"
] | null | null | null |
tool/project/script/components_js.asp
|
JPhilipp/QuestML
|
22260cb9de7a07f75b6a788d12ae20dfe51d0830
|
[
"MIT"
] | null | null | null |
<script language="JScript" runat="Server">
</script>
| 17.666667
| 42
| 0.716981
|
114990aa30b4a22b507c1d70e5b32411d93b033e
| 1,449
|
ascx
|
ASP
|
src/Foundation.CommerceManager/Apps/Core/Common/LanguageSelectControl.ascx
|
qtxasjo/Foundation
|
94d091fdd949b1d35f346984de77613f399dae62
|
[
"Apache-2.0"
] | 96
|
2015-05-06T13:46:51.000Z
|
2022-01-18T09:57:59.000Z
|
src/Foundation.CommerceManager/Apps/Core/Common/LanguageSelectControl.ascx
|
qtxasjo/Foundation
|
94d091fdd949b1d35f346984de77613f399dae62
|
[
"Apache-2.0"
] | 324
|
2019-10-29T07:06:14.000Z
|
2022-03-24T10:22:19.000Z
|
src/Foundation.CommerceManager/Apps/Core/Common/LanguageSelectControl.ascx
|
qtxasjo/Foundation
|
94d091fdd949b1d35f346984de77613f399dae62
|
[
"Apache-2.0"
] | 142
|
2015-05-07T17:37:58.000Z
|
2022-03-25T15:37:51.000Z
|
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LanguageSelectControl.ascx.cs" Inherits="Mediachase.Commerce.Manager.Core.Common.LanguageSelectControl" %>
<asp:Panel ID="Panel1" runat="server" DefaultButton="btnOK">
<table width="100%" cellspacing="10" border="0">
<tr>
<td>
<asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:SharedStrings, Language %>"/>:
</td>
<td>
<asp:DropDownList runat="server" ID="LanguagesList" AutoPostBack="false" ValidationGroup="vgLanguage">
<asp:ListItem Value="" Text="<%$ Resources:SharedStrings, Select_Language %>"></asp:ListItem>
</asp:DropDownList>
<asp:RequiredFieldValidator runat="server" ID="LanguageRequired" ControlToValidate="LanguagesList" ErrorMessage="*" Display="Dynamic" ValidationGroup="vgLanguage"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" style="padding-right:10px;" colspan="2">
<asp:Button runat="server" ID="btnOK" Text="<%$ Resources:SharedStrings, OK %>" Width="80px" OnClick="btnOK_Click" ValidationGroup="vgLanguage" />
<asp:Button runat="server" ID="btnClose" Text="<%$ Resources:SharedStrings, Close %>" Width="80px" CausesValidation="false" />
</td>
</tr>
</table>
</asp:Panel>
| 63
| 208
| 0.612146
|
6bb73394d5cf17a49c2c4bbee61a8c400384c2f3
| 682
|
sats
|
ATS
|
src/SATS/cont.sats
|
ashalkhakov/tfc
|
0ae056d4805d24213d99660f4789ccda47a1c099
|
[
"BSD-3-Clause"
] | null | null | null |
src/SATS/cont.sats
|
ashalkhakov/tfc
|
0ae056d4805d24213d99660f4789ccda47a1c099
|
[
"BSD-3-Clause"
] | 1
|
2019-04-03T07:22:28.000Z
|
2019-04-03T07:22:28.000Z
|
src/SATS/cont.sats
|
ashalkhakov/tfc
|
0ae056d4805d24213d99660f4789ccda47a1c099
|
[
"BSD-3-Clause"
] | null | null | null |
(*
from https://www.irif.fr/~jch/cpc.pdf
see also https://github.com/kerneis/cpc
continuation: k : a -> void, for some type a
continuation as a linear adt:
*)
absvtype cont(a:vt@ype) = ptr
vtypedef kfun(a:vt@ype, b:vt@ype) = (a, cont(b)) -> void
// need some base case here no?
fun{a:vt@ype}
dummy (INV(a) -> void): cont(a)
// calling a continuation
fun{a:vt@ype}
resume(k : cont(a), x : INV(a)): void // = k(x)
// prepend a funapp to the body of continuation
fun{a,b:vt@ype}
push(m: kfun(INV(b), a), k: cont(INV(a))): cont(b) // = lam (n:b) => m (n, k)
(* schematically:
push(f, x1,..,xn,k) = f(x1,..,xn) . k
resume((f,x1,...,xn) . k,y1,...,ym) = f(x1,..,xn,y1,...,ym,k)
*)
| 23.517241
| 77
| 0.595308
|
cac1718dfbe3de713ed8c5084c7c88ebe2d44c0f
| 131
|
sats
|
ATS
|
demos/halapi_ats/libmbedats/SATS/mbed_api_wait_api.sats
|
fpiot/mbed-ats
|
4e622cc237e1efed22da83ec599e908bbd900fce
|
[
"Apache-2.0"
] | 9
|
2015-04-27T06:34:27.000Z
|
2020-03-09T08:30:55.000Z
|
demos/halapi_ats/libmbedats/SATS/mbed_api_wait_api.sats
|
fpiot/mbed-ats
|
4e622cc237e1efed22da83ec599e908bbd900fce
|
[
"Apache-2.0"
] | null | null | null |
demos/halapi_ats/libmbedats/SATS/mbed_api_wait_api.sats
|
fpiot/mbed-ats
|
4e622cc237e1efed22da83ec599e908bbd900fce
|
[
"Apache-2.0"
] | null | null | null |
%{^
#include "wait_api.h"
%}
fun wait: float -> void = "mac#"
fun wait_ms: int -> void = "mac#"
fun wait_us: int -> void = "mac#"
| 16.375
| 33
| 0.572519
|
9d5f86eac5b1474c99a9af27c22fc76de9a5e12c
| 17,900
|
sats
|
ATS
|
xanadu/srcgen/xats/SATS/trans12.sats
|
rahul-arasikere/LambdaCalculusInterpreter
|
b83ee6c2017035058f55c22488dcb6654fa10e88
|
[
"MIT"
] | null | null | null |
xanadu/srcgen/xats/SATS/trans12.sats
|
rahul-arasikere/LambdaCalculusInterpreter
|
b83ee6c2017035058f55c22488dcb6654fa10e88
|
[
"MIT"
] | null | null | null |
xanadu/srcgen/xats/SATS/trans12.sats
|
rahul-arasikere/LambdaCalculusInterpreter
|
b83ee6c2017035058f55c22488dcb6654fa10e88
|
[
"MIT"
] | null | null | null |
(***********************************************************************)
(* *)
(* Applied Type System *)
(* *)
(***********************************************************************)
(*
** ATS/Xanadu - Unleashing the Potential of Types!
** Copyright (C) 2018 Hongwei Xi, ATS Trustful Software, Inc.
** All rights reserved
**
** ATS is free software; you can redistribute it and/or modify it under
** the terms of the GNU GENERAL PUBLIC LICENSE (GPL) as published by the
** Free Software Foundation; either version 3, or (at your option) any
** later version.
**
** ATS is distributed in the hope that it will be useful, but WITHOUT ANY
** WARRANTY; without even the implied warranty of MERCHANTABILITY or
** FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
** for more details.
**
** You should have received a copy of the GNU General Public License
** along with ATS; see the file COPYING. If not, please write to the
** Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
** 02110-1301, USA.
*)
(* ****** ****** *)
//
// Author: Hongwei Xi
// Start Time: October, 2018
// Authoremail: gmhwxiATgmailDOTcom
//
(* ****** ****** *)
//
#staload "./basics.sats"
#staload "./symbol.sats"
#staload "./symmap.sats"
//
(* ****** ****** *)
//
#staload
FP0 = "./filpath.sats"
#staload
LOC = "./locinfo.sats"
//
typedef loc_t = $LOC.loc_t
//
(* ****** ****** *)
typedef fpath = $FP0.filpath
typedef filpath = $FP0.filpath
(* ****** ****** *)
#staload LEX = "./lexing.sats"
#staload S1E = "./staexp1.sats"
#staload D1E = "./dynexp1.sats"
#staload S2E = "./staexp2.sats"
#staload D2E = "./dynexp2.sats"
(* ****** ****** *)
typedef token = $LEX.token
(* ****** ****** *)
typedef s1exp = $S1E.s1exp
typedef d1exp = $D1E.d1exp
(* ****** ****** *)
(*
symintr trans12 // too much?
*)
(* ****** ****** *)
//
typedef g1exp = $S1E.g1exp
//
typedef g1mac = $S1E.g1mac
(*
HX-2020-10-17:
Note that g1mac is defined
in the [g1maro_define.dats]
*)
//
(* ****** ****** *)
fun
trans11_g1exp(g1exp): g1mac
fun
trans11_g1mac
( gmas: $S1E.g1marglst
, def1: $S1E.g1expopt): g1mac
(* ****** ****** *)
//
vtypedef g1menv = symmap(g1mac)
//
(* ****** ****** *)
//
typedef sort1 = $S1E.sort1
typedef s1arg = $S1E.s1arg
typedef s1exp = $S1E.s1exp
(*
typedef s1eff = $S1E.s1eff
*)
typedef s1qua = $S1E.s1qua
//
(* ****** ****** *)
//
typedef s1marg = $S1E.s1marg
typedef s1rtcon = $S1E.s1rtcon
//
(* ****** ****** *)
//
typedef sort1opt = $S1E.sort1opt
typedef sort1lst = $S1E.sort1lst
//
typedef s1arglst = $S1E.s1arglst
//
typedef s1expopt = $S1E.s1expopt
typedef s1explst = $S1E.s1explst
//
typedef s1qualst = $S1E.s1qualst
//
(* ****** ****** *)
//
typedef d1atcon = $S1E.d1atcon
typedef d1atype = $S1E.d1atype
typedef d1atconlst = $S1E.d1atconlst
typedef d1atypelst = $S1E.d1atypelst
//
(* ****** ****** *)
//
typedef labs1exp = $S1E.labs1exp
typedef labs1explst = $S1E.labs1explst
//
(* ****** ****** *)
//
typedef effs1expopt = $S1E.effs1expopt
//
(* ****** ****** *)
//
typedef sort2 = $S2E.sort2
typedef sort2opt = $S2E.sort2opt
typedef sort2lst = $S2E.sort2lst
//
(* ****** ****** *)
//
typedef s2cst = $S2E.s2cst
typedef s2var = $S2E.s2var
//
typedef s2cstlst = $S2E.s2cstlst
typedef s2varlst = $S2E.s2varlst
//
(* ****** ****** *)
typedef s2varlstlst = List0(s2varlst)
(* ****** ****** *)
//
typedef s2exp = $S2E.s2exp
(*
typedef s2eff = $S2E.s2eff
*)
typedef s2expopt = $S2E.s2expopt
typedef s2explst = $S2E.s2explst
//
typedef labs2exp = $S2E.labs2exp
typedef labs2explst = $S2E.labs2explst
//
(* ****** ****** *)
typedef effs2expopt = $S2E.effs2expopt
(* ****** ****** *)
//
typedef s2txt = $S2E.s2txt
typedef s2txtopt = $S2E.s2txtopt
//
(* ****** ****** *)
//
vtypedef
g1macopt_vt = Option_vt(g1mac)
//
(* ****** ****** *)
//
vtypedef
s2cstlst_vt = $S2E.s2cstlst_vt
vtypedef
s2varlst_vt = $S2E.s2varlst_vt
vtypedef
s2explst_vt = $S2E.s2explst_vt
//
(* ****** ****** *)
//
vtypedef
s2cstopt_vt = $S2E.s2cstopt_vt
vtypedef
s2varopt_vt = $S2E.s2varopt_vt
vtypedef
s2expopt_vt = $S2E.s2expopt_vt
vtypedef
s2txtopt_vt = $S2E.s2txtopt_vt
//
(* ****** ****** *)
//
typedef
fmodenv = $S2E.fmodenv
typedef
fmodenvopt = $S2E.fmodenvopt
vtypedef
fmodenvopt_vt = $S2E.fmodenvopt_vt
//
(* ****** ****** *)
//
typedef a1typ = $D1E.a1typ
typedef a1typlst = $D1E.a1typlst
//
(* ****** ****** *)
//
typedef q1arg = $D1E.q1arg
typedef sq1arg = $D1E.sq1arg
typedef tq1arg = $D1E.tq1arg
typedef ti1arg = $D1E.ti1arg
//
typedef q1arglst = $D1E.q1arglst
typedef sq1arglst = $D1E.sq1arglst
typedef tq1arglst = $D1E.tq1arglst
typedef ti1arglst = $D1E.ti1arglst
//
(* ****** ****** *)
typedef d1pat = $D1E.d1pat
typedef d1patlst = $D1E.d1patlst
typedef d1patopt = $D1E.d1patopt
(* ****** ****** *)
typedef f1arg = $D1E.f1arg
typedef f1arglst = $D1E.f1arglst
(* ****** ****** *)
typedef d1gua = $D1E.d1gua
typedef d1clau = $D1E.d1clau
typedef d1gpat = $D1E.d1gpat
typedef d1gualst = $D1E.d1gualst
typedef d1claulst = $D1E.d1claulst
(* ****** ****** *)
typedef d1exp = $D1E.d1exp
typedef d1explst = $D1E.d1explst
typedef d1expopt = $D1E.d1expopt
(* ****** ****** *)
typedef d1ecl = $D1E.d1ecl
typedef d1eclist = $D1E.d1eclist
(* ****** ****** *)
//
typedef d2con = $D2E.d2con
typedef d2cst = $D2E.d2cst
typedef d2var = $D2E.d2var
//
typedef d2conlst = $D2E.d2conlst
typedef d2cstlst = $D2E.d2cstlst
typedef d2varlst = $D2E.d2varlst
//
(* ****** ****** *)
typedef sq2arg = $D2E.sq2arg
typedef tq2arg = $D2E.tq2arg
typedef ti2arg = $D2E.ti2arg
typedef sq2arglst = $D2E.sq2arglst
typedef tq2arglst = $D2E.tq2arglst
typedef ti2arglst = $D2E.ti2arglst
(* ****** ****** *)
typedef d2pat = $D2E.d2pat
typedef d2patlst = $D2E.d2patlst
typedef d2patopt = $D2E.d2patopt
(* ****** ****** *)
typedef f2arg = $D2E.f2arg
typedef f2arglst = $D2E.f2arglst
(* ****** ****** *)
typedef d2gua = $D2E.d2gua
typedef d2clau = $D2E.d2clau
typedef d2gpat = $D2E.d2gpat
typedef d2gualst = $D2E.d2gualst
typedef d2claulst = $D2E.d2claulst
(* ****** ****** *)
typedef d2exp = $D2E.d2exp
typedef d2explst = $D2E.d2explst
typedef d2expopt = $D2E.d2expopt
(* ****** ****** *)
typedef d2ecl = $D2E.d2ecl
typedef d2eclist = $D2E.d2eclist
(* ****** ****** *)
//
typedef s2itm = $S2E.s2itm
typedef d2itm = $D2E.d2itm
//
typedef s2itmopt = $S2E.s2itmopt
typedef d2itmopt = $D2E.d2itmopt
//
vtypedef
s2itmopt_vt = $S2E.s2itmopt_vt
vtypedef
d2itmopt_vt = $D2E.d2itmopt_vt
//
(* ****** ****** *)
//
vtypedef s2tmap = symmap(s2txt)
vtypedef s2imap = symmap(s2itm)
vtypedef d2imap = symmap(d2itm)
//
(* ****** ****** *)
//
fun
sargid_new((*void*)): sym_t
fun
dargid_new((*void*)): sym_t
//
(* ****** ****** *)
fun
fmodenv_make
( fp: fpath
, env0: g1menv
(*
, env1: d2menv
*)
, map0: s2tmap
, map1: s2imap
, map2: d2imap
, d2cs: d2eclist) : fmodenv
(* ****** ****** *)
fun
fmodenv_get_g1menv
( menv
: fmodenv
) :
[
l:addr
]
( g1menv@l
, minus_v(fmodenv, g1menv@l) | ptr(l))
(* ****** ****** *)
//
(*
HX-2018-11-18:
Not waterproof but seems adequate
*)
fun
fmodenv_get_s2tmap
( menv
: fmodenv
) :
[
l:addr
]
( s2tmap@l
, minus_v(fmodenv, s2tmap@l) | ptr(l))
fun
fmodenv_get_s2imap
( menv
: fmodenv
) :
[
l:addr
]
( s2imap@l
, minus_v(fmodenv, s2imap@l) | ptr(l))
fun
fmodenv_get_d2imap
( menv
: fmodenv
) :
[
l:addr
]
( d2imap@l
, minus_v(fmodenv, d2imap@l) | ptr(l))
//
(* ****** ****** *)
//
fun
fmodenv_get_d2eclist(fmodenv): d2eclist
//
(* ****** ****** *)
//
abstype d3eclist = ptr
abstype t3imptbl = ptr
typedef d3eclistopt = Option(d3eclist)
typedef t3imptblopt = Option(t3imptbl)
//
(* ****** ****** *)
//
fun
fmodenv_get_d3eclist
(env: fmodenv): d3eclistopt
fun
fmodenv_set_d3eclist
(menv: fmodenv, htbl: d3eclist): void
//
fun
fmodenv_get_t3imptbl
(env: fmodenv): t3imptblopt
fun
fmodenv_set_t3imptbl
(menv: fmodenv, htbl: t3imptbl): void
//
(* ****** ****** *)
//
fun
the_nmspace_open
(menv: fmodenv): void
//
(* ****** ****** *)
//
fun
the_qualist_find
(qua: token): fmodenvopt_vt
//
(* ****** ****** *)
//
fun
the_gmacenv_add
(gid: sym_t, def: g1mac): void
fun
the_gmacenv_padd
(gid: sym_t, def: g1mac): void
//
fun
the_gmacenv_find
( gid: sym_t ) : g1macopt_vt
fun
the_gmacenv_qfind
( qua: token
, gid: sym_t ) : g1macopt_vt
//
(* ****** ****** *)
absview gmacenv_view
viewdef gmacenv_v = gmacenv_view
(* ****** ****** *)
//
fun
the_gmacenv_pop
(gmacenv_v | (*none*)): g1menv
fun
the_gmacenv_popfree
(gmacenv_v | (*none*)): (void)
fun
the_gmacenv_pushnil
((*void*)): (gmacenv_v | void)
//
fun
the_gmacenv_locjoin
(
pf1: gmacenv_v
, pf2: gmacenv_v | (*none*)
) : void // end of [the_gmacenv_locjoin]
//
fun // p: pervasive
the_gmacenv_pjoinwth0(map: g1menv): void
fun // p: pervasive
the_gmacenv_pjoinwth1(map: !g1menv): void
//
(* ****** ****** *)
fun
the_gmacenv_fprint(FILEref): void
fun
the_gmacenv_println((*void*)): void
(* ****** ****** *)
//
fun
the_sortenv_add
(tid: sym_t, s2t: s2txt): void
fun
the_sortenv_padd
(tid: sym_t, s2t: s2txt): void
//
fun
the_sortenv_find
( tid: sym_t ) : s2txtopt_vt
fun
the_sortenv_qfind
( qua: token
, tid: sym_t ) : s2txtopt_vt
//
(* ****** ****** *)
absview sortenv_view
viewdef sortenv_v = sortenv_view
(* ****** ****** *)
//
fun
the_sortenv_pop
(sortenv_v | (*none*)): s2tmap
fun
the_sortenv_popfree
(sortenv_v | (*none*)): (void)
fun
the_sortenv_pushnil
((*void*)): (sortenv_v | void)
//
fun
the_sortenv_locjoin
(
pf1: sortenv_v
, pf2: sortenv_v | (*none*)
) : void // end of [the_sortenv_locjoin]
//
fun // p: pervasive
the_sortenv_pjoinwth0(map: s2tmap): void
fun // p: pervasive
the_sortenv_pjoinwth1(map: !s2tmap): void
//
(* ****** ****** *)
//
fun
the_sortenv_fprint(FILEref): void
fun
the_sortenv_println((*void*)): void
//
(* ****** ****** *)
//
fun
the_sexpenv_add
(tid: sym_t, s2i: s2itm): void
fun
the_sexpenv_add_cst(s2c: s2cst): void
fun
the_sexpenv_add_var(s2v: s2var): void
fun
the_sexpenv_add_cstlst(s2cs: s2cstlst): void
fun
the_sexpenv_add_varlst(s2vs: s2varlst): void
fun
the_sexpenv_add_tqalst(tqas: tq2arglst): void
fun
the_sexpenv_add_varlstlst(svss: s2varlstlst): void
//
fun
the_sexpenv_find
( sym: sym_t ) : s2itmopt_vt
fun // pervasive
the_sexpenv_pfind
( sym: sym_t ) : s2itmopt_vt
fun
the_sexpenv_qfind
( qua: token
, sym: sym_t ) : s2itmopt_vt
//
(* ****** ****** *)
absview sexpenv_view
viewdef sexpenv_v = sexpenv_view
(* ****** ****** *)
//
fun
the_sexpenv_pop
(sexpenv_v | (*none*)): s2imap
fun
the_sexpenv_popfree
(sexpenv_v | (*none*)): (void)
fun
the_sexpenv_pushnil
((*void*)): (sexpenv_v | void)
//
fun
the_sexpenv_locjoin
(
pf1: sexpenv_v
, pf2: sexpenv_v | (*none*)
) : void // end of [the_sexpenv_locjoin]
//
fun // p: pervasive
the_sexpenv_pjoinwth0(map: s2imap): void
fun // p: pervasive
the_sexpenv_pjoinwth1(map: !s2imap): void
//
(* ****** ****** *)
//
fun
the_sexpenv_fprint(FILEref): void
fun
the_sexpenv_println((*void*)): void
//
(* ****** ****** *)
//
fun
s2cst_select_any
( s2cs
: s2cstlst): Option_vt(s2cst)
//
fun
s2cst_select_bin
( s2cs
: s2cstlst
, arg1: sort2
, arg2: sort2): Option_vt(s2cst)
//
fun
s2cst_select_list
( s2cs: s2cstlst
, s2es: s2explst): Option_vt(s2cst)
//
(* ****** ****** *)
//
fun
s1imp_get_lin(s1exp): int
fun
s1imp_get_fc2(s1exp): funclo2
(*
fun
s1imp_get_eff(s1exp): (s2eff)
*)
//
fun
s1explst_get_lin(s1explst): int
fun
s1explst_get_fc2(s1explst): funclo2
(*
fun
s1explst_get_eff(s1explst): (s2eff)
*)
//
(* ****** ****** *)
//
fun
s1exp_get_s2cstlst(s1exp): s2cstlst
//
(* ****** ****** *)
//
fun
trans12_sort: sort1 -> sort2
fun
trans12_sortopt: sort1opt -> sort2opt
fun
trans12_sortlst: sort1lst -> sort2lst
//
(*
overload trans12 with trans12_sort
overload trans12 with trans12_sortopt
overload trans12 with trans12_sortlst
*)
//
(* ****** ****** *)
//
fun
trans12_sarg: s1arg -> s2var
fun
trans12_smarg: s1marg -> s2varlst
//
fun
trans12_sarglst: s1arglst -> s2varlst
//
(* ****** ****** *)
//
fun
trans12_stxt: sort1 -> s2txt
//
(* ****** ****** *)
//
fun
trans12_squalst
( s1qs: s1qualst
, s2vs: &s2varlst_vt >> _
, s2ps: &s2explst_vt >> _): void
//
(* ****** ****** *)
//
fun
trans12_sexp: s1exp -> s2exp
fun
trg1mac_sexp:(loc_t, g1mac) -> s2exp
//
(* ****** ****** *)
//
fun
trans12_sexpopt: s1expopt -> s2expopt
fun
trans12_sexplst: s1explst -> s2explst
//
(*
overload trans12 with trans12_sexp
overload trans12 with trans12_sexpopt
overload trans12 with trans12_sexplst
*)
//
(* ****** ****** *)
//
// HX:
// checking for impredicativity
//
fun
trans12_sexp_ci(s1e0: s1exp): s2exp
fun
trans12_sexplst_ci(s1es: s1explst): s2explst
fun
trans12_sexp_cp(s1e0: s1exp): s2exp
fun
trans12_sexplst_cp(s1es: s1explst): s2explst
fun
trans12_sexp_ct(s1e0: s1exp): s2exp
fun
trans12_sexplst_ct(s1es: s1explst): s2explst
//
(* ****** ****** *)
//
fun
trans12_sexp_ck
(s1e0: s1exp, s2t0: sort2): s2exp
fun
trans12_sexplst_ck
(s1es: s1explst, s2t0: sort2): s2explst
fun
trans12_sexplst_cks
( loc0: loc_t
, s1es: s1explst, s2ts: sort2lst): s2explst
//
(* ****** ****** *)
//
fun
trans12_labsexplst_ci
(ls1es: labs1explst): labs2explst
fun
trans12_labsexplst_cp
(ls1es: labs1explst): labs2explst
fun
trans12_labsexplst_ct
(ls1es: labs1explst): labs2explst
//
(* ****** ****** *)
//
(*
fun
trans12_seff: s1eff -> s2eff
*)
//
fun
trans12_effsexpopt
( opt0: effs1expopt ) : effs2expopt
//
(* ****** ****** *)
//
fun
the_dexpenv_add
(tid: sym_t, d2i: d2itm): void
fun
the_dexpenv_add_con(d2c: d2con): void
fun
the_dexpenv_add_cst(d2c: d2cst): void
fun
the_dexpenv_add_var(d2v: d2var): void
fun
the_dexpenv_add_conlst(d2cs: d2conlst): void
fun
the_dexpenv_add_cstlst(d2cs: d2cstlst): void
fun
the_dexpenv_add_varlst(d2vs: d2varlst): void
//
fun
the_dexpenv_find
( sym: sym_t ) : d2itmopt_vt
fun
the_dexpenv_qfind
( qua: token
, sym: sym_t ) : d2itmopt_vt
//
(* ****** ****** *)
absview dexpenv_view
viewdef dexpenv_v = dexpenv_view
(* ****** ****** *)
//
fun
the_dexpenv_pop
(dexpenv_v | (*none*)): d2imap
fun
the_dexpenv_popfree
(dexpenv_v | (*none*)): (void)
fun
the_dexpenv_pushnil
((*void*)): (dexpenv_v | void)
//
fun
the_dexpenv_locjoin
( pf1: dexpenv_v
, pf2: dexpenv_v | (*none*)): void
//
fun // p: pervasive
the_dexpenv_pjoinwth0(map: d2imap): void
fun // p: pervasive
the_dexpenv_pjoinwth1(map: !d2imap): void
//
(* ****** ****** *)
//
fun
the_dexpenv_fprint(FILEref): void
fun
the_dexpenv_println((*void*)): void
//
(* ****** ****** *)
//
fun
the_fmodenvmap_add
(fid: sym_t, env: fmodenv): void
//
fun
the_fmodenvmap_find
(fid: sym_t): Option_vt(fmodenv)
//
(* ****** ****** *)
absview trans12_view
viewdef trans12_v = trans12_view
(* ****** ****** *)
//
fun
the_trans12_popfree
(trans12_v | (*none*)): (void)
fun
the_trans12_pushnil
((*void*)): (trans12_v | void)
//
fun
the_trans12_locjoin
( pf1: trans12_v
, pf2: trans12_v | (*none*)): void
//
(* ****** ****** *)
//
fun
the_trans12_pjoinwth0
( pf0: trans12_v | (*void*)): (void)
fun
the_trans12_pjoinwth1
( pf0: trans12_v
| fp0: fpath, d2cs: d2eclist): (void)
//
(* ****** ****** *)
//
absview
trans12_save_view
viewdef
trans12_save_v = trans12_save_view
//
(* ****** ****** *)
//
fun
the_trans12_savecur
((*none*))
:
(trans12_save_v | void)
fun
the_trans12_restore
(trans12_save_v | (*none*))
:
( g1menv, s2tmap, s2imap, d2imap )
//
(* ****** ****** *)
//
fun
the_trans12_add_pat(d2p: d2pat): void
fun
the_trans12_add_patlst(d2ps: d2patlst): void
//
fun
the_trans12_add_gua(d2g: d2gua): void
fun
the_trans12_add_gpat(d2gp: d2gpat): void
fun
the_trans12_add_gualst(d2gs: d2gualst): void
//
(* ****** ****** *)
//
fun
trans12_dpat: d1pat -> d2pat
fun
trans12_dpatlst: d1patlst -> d2patlst
//
(* ****** ****** *)
//
fun
trans12_farg: f1arg -> f2arg
fun
trans12_farglst: f1arglst -> f2arglst
//
(* ****** ****** *)
//
fun
trans12_dgua: d1gua -> d2gua
fun
trans12_dclau: d1clau -> d2clau
fun
trans12_dgpat: d1gpat -> d2gpat
//
fun
trans12_dgualst: d1gualst -> d2gualst
fun
trans12_dclaulst: d1claulst -> d2claulst
//
(* ****** ****** *)
//
fun
trans12_dexp: d1exp -> d2exp
fun
trg1mac_dexp:(loc_t, g1mac) -> d2exp
//
(* ****** ****** *)
//
fun
trans12_dexpopt: d1expopt -> d2expopt
fun
trans12_dexplst: d1explst -> d2explst
//
(*
overload trans12 with trans12_dexp
overload trans12 with trans12_dexpopt
overload trans12 with trans12_dexplst
*)
//
(* ****** ****** *)
fun
trans12_dexpseq
(loc0: loc_t, d1es: d1explst): d2exp
(* ****** ****** *)
//
fun
trans12_decl: d1ecl -> d2ecl
fun
trans12_declist: d1eclist -> d2eclist
//
(*
overload trans12 with trans12_decl
overload trans12 with trans12_declopt
*)
//
(* ****** ****** *)
//
typedef
s2varlstlst = List0(s2varlst)
typedef
s2explstlst = List0(s2explst)
//
(* ****** ****** *)
//
fun
trans12_datype
(d1t0: d1atype): s2cst
fun
trans12_datypelst
(d1ts: d1atypelst): s2cstlst
//
fun
trans12_datcon
( s2c0: s2cst
, tqas: tq2arglst
, s2varlstlst, d1atcon): d2con
fun
trans12_datconlst
( s2c0: s2cst
, s2varlstlst, d1atconlst): d2conlst
//
fun
trans12_tag_d2conlst
(s2c0: s2cst, d2cs: d2conlst): void
//
(* ****** ****** *)
//
fun
trans12_atyp(x0: a1typ): s2exp
fun
trans12_atyplst(x0: a1typlst): s2explst
//
(* ****** ****** *)
//
fun
trans12_qarg
(q1a: q1arg): s2var
fun
trans12_qarglst
(q1as: q1arglst): s2varlst
//
(* ****** ****** *)
//
fun
trans12_sqarg(sq1a: sq1arg): sq2arg
fun
trans12_tqarg(tq1a: tq1arg): tq2arg
fun
trans12_tiarg(ti1a: ti1arg): ti2arg
//
fun
trans12_sqarglst(sqas: sq1arglst): sq2arglst
fun
trans12_tqarglst(tqas: tq1arglst): tq2arglst
fun
trans12_tiarglst(tias: ti1arglst): ti2arglst
//
(* ****** ****** *)
fun
d1exp_nmspace
(d1e0: d1exp): symbolopt_vt
(* ****** ****** *)
//
fun
(*
the_fmodenvmap_add
*)
trans12_staload_add
(fp: filpath, menv: fmodenv): void
//
fun
(*
the_fmodenvmap_find
*)
trans12_staload_find
(fp0: filpath): Option_vt(fmodenv)
//
(* ****** ****** *)
(* end of [xats_trans12.sats] *)
| 17.311412
| 73
| 0.632402
|
920ead792f2b60b5a66076a803999006c5cb4f6e
| 523
|
sats
|
ATS
|
contrib/APUE/SATS/stdio.sats
|
githwxi/ATS-Postiats-contrib
|
45149b8854cc1a01489d61e444ee53876ded3e65
|
[
"MIT"
] | 46
|
2015-01-12T16:24:42.000Z
|
2021-05-21T14:21:22.000Z
|
contrib/APUE/SATS/stdio.sats
|
githwxi/ATS-Postiats-contrib
|
45149b8854cc1a01489d61e444ee53876ded3e65
|
[
"MIT"
] | 12
|
2015-01-16T20:36:07.000Z
|
2019-04-04T14:40:27.000Z
|
contrib/APUE/SATS/stdio.sats
|
githwxi/ATS-Postiats-contrib
|
45149b8854cc1a01489d61e444ee53876ded3e65
|
[
"MIT"
] | 17
|
2015-03-04T07:01:17.000Z
|
2021-09-08T16:08:46.000Z
|
(* ****** ****** *)
%{#
//
#include \
"APUE/CPTR/CATS/stdio.cats"
//
%} (* end of [%{#] *)
(* ****** ****** *)
staload "./../basics.sats"
(* ****** ****** *)
abstflt
FILE_t0 = $extype"FILE"
typedef FILE = FILE_t0
(* ****** ****** *)
//
fun
fopen
(
path: string, mode: string
) : ptr0(FILE) = "mac#"
fun
fdopen
(
fdes: fildes, mode: string
) : ptr0(FILE) = "mac#"
fun
freopen
(
path: string, mode: string, stream: ptr1(FILE)
) : ptr0(FILE) = "mac#"
//
(* ****** ****** *)
(* end of [stdio.sats] *)
| 13.410256
| 48
| 0.458891
|
eb8c67c4f196b0707cfc6a165bbb49a87e64ed04
| 613
|
hats
|
ATS
|
projects/MEDIUM/KernelBuilding/singpolyma-kernel/kernel_staload.hats
|
steinwaywhw/ATS-Postiats-contrib
|
6e5268649a3b91158445cb665d9102f1ee1cdfbf
|
[
"MIT"
] | null | null | null |
projects/MEDIUM/KernelBuilding/singpolyma-kernel/kernel_staload.hats
|
steinwaywhw/ATS-Postiats-contrib
|
6e5268649a3b91158445cb665d9102f1ee1cdfbf
|
[
"MIT"
] | null | null | null |
projects/MEDIUM/KernelBuilding/singpolyma-kernel/kernel_staload.hats
|
steinwaywhw/ATS-Postiats-contrib
|
6e5268649a3b91158445cb665d9102f1ee1cdfbf
|
[
"MIT"
] | null | null | null |
(* ****** ****** *)
//
// Templates for kernel programming
//
(* ****** ****** *)
staload _ = "prelude/DATS/integer.dats"
staload _ = "prelude/DATS/pointer.dats"
(* ****** ****** *)
staload _ = "prelude/DATS/bool.dats"
staload _ = "prelude/DATS/char.dats"
staload _ = "prelude/DATS/string.dats"
(* ****** ****** *)
staload _ = "prelude/DATS/array.dats"
staload _ = "prelude/DATS/arrayptr.dats"
staload _ = "prelude/DATS/arrayref.dats"
(* ****** ****** *)
staload UNSAFE = "prelude/SATS/unsafe.sats"
staload _(*UNSAFE*) = "prelude/DATS/unsafe.dats"
(* ****** ****** *)
(* end of [kernel_staload.hats] *)
| 20.433333
| 48
| 0.577488
|
6f703fd82ba0664f317f8201e9ebbbf99cb253ea
| 789
|
hats
|
ATS
|
contrib/libats-/hwxi/threadkit/staloadall.hats
|
alex-ren/Learn-ATS-Postiats-contrib
|
899cbda27ff8c84082b46484313235f44d7d3c11
|
[
"MIT"
] | null | null | null |
contrib/libats-/hwxi/threadkit/staloadall.hats
|
alex-ren/Learn-ATS-Postiats-contrib
|
899cbda27ff8c84082b46484313235f44d7d3c11
|
[
"MIT"
] | null | null | null |
contrib/libats-/hwxi/threadkit/staloadall.hats
|
alex-ren/Learn-ATS-Postiats-contrib
|
899cbda27ff8c84082b46484313235f44d7d3c11
|
[
"MIT"
] | null | null | null |
(*
** For supporting
** multi-threaded programming
*)
(* ****** ****** *)
//
// HX-2015-03-19
//
(* ****** ****** *)
//
staload _ =
"libats/DATS/deqarray.dats"
//
(* ****** ****** *)
//
staload _ =
"libats/DATS/athread.dats"
staload _ =
"libats/DATS/athread_posix.dats"
//
(* ****** ****** *)
//
staload
SPINVAR = "./SATS/spinvar.sats"
staload
SPINREF = "./SATS/spinref.sats"
//
staload _ = "./DATS/spinvar.dats"
staload _ = "./DATS/spinref.dats"
//
(* ****** ****** *)
//
staload
NWAITER = "./SATS/nwaiter.sats"
staload _ = "./DATS/nwaiter.dats"
//
(* ****** ****** *)
//
staload
CHANNEL = "./SATS/channel.sats"
staload
CHANNEL_VT = "./SATS/channel_vt.sats"
//
staload _ = "./DATS/channel.dats"
staload _ = "./DATS/channel_vt.dats"
//
(* ****** ****** *)
(* end of [staloadall.hats] *)
| 15.470588
| 37
| 0.543726
|
e9ceaf799a571382beda4da2ff6e152cfbbfb238
| 6,252
|
as
|
ActionScript
|
swf/com/playata/application/data/battle/Battle.as
|
lukastechhonda/BigBangEmpireBot
|
5d5666c9d06111dc079f61b6038e2338d21fc8a7
|
[
"MIT"
] | 1
|
2019-10-31T13:49:58.000Z
|
2019-10-31T13:49:58.000Z
|
swf/com/playata/application/data/battle/Battle.as
|
lukastechhonda/BigBangEmpireBot
|
5d5666c9d06111dc079f61b6038e2338d21fc8a7
|
[
"MIT"
] | 11
|
2018-09-30T15:17:00.000Z
|
2022-02-13T11:52:26.000Z
|
swf/com/playata/application/data/battle/Battle.as
|
Zweer/BigBangEmpireBot
|
d0fd04118822bf0eb6fffd271ce944f0475c5998
|
[
"MIT"
] | 6
|
2018-06-18T18:43:46.000Z
|
2021-03-03T21:48:43.000Z
|
package com.playata.application.data.battle
{
import com.playata.application.data.AppDateTime;
import com.playata.application.data.dataobject.DOBattle;
import com.playata.framework.core.TypedObject;
import com.playata.framework.core.logging.Logger;
import com.playata.framework.core.util.JsonUtil;
public class Battle extends DOBattle
{
private var _battleRounds:Vector.<CharacterBattleRound> = null;
private var _profileAAppearance:TypedObject = null;
private var _profileBAppearance:TypedObject = null;
public function Battle(param1:DOBattle)
{
super(param1);
}
public function get dateTime() : String
{
return AppDateTime.getPassedShortFormattedTimestamp(tsCreation);
}
public function get isClose() : Boolean
{
var _loc1_:int = 0;
var _loc2_:int = 0;
if(winner == "a")
{
_loc1_ = profileAEndHitPoints;
_loc2_ = profileAHitPoints;
}
else
{
_loc1_ = profileBEndHitPoints;
_loc2_ = profileBHitPoints;
}
var _loc3_:Number = _loc1_ / _loc2_;
return _loc3_ < 0.15;
}
public function get profileA() : TypedObject
{
return getTypedObjectFromJson("profile_a_stats");
}
public function get profileB() : TypedObject
{
return getTypedObjectFromJson("profile_b_stats");
}
public function get profileAHitPoints() : int
{
return profileA.getInt("hitpoints");
}
public function get profileBHitPoints() : int
{
return profileB.getInt("hitpoints");
}
public function get profileATotalDamage() : int
{
var _loc1_:int = 0;
var _loc4_:int = 0;
var _loc3_:* = battleRounds;
for each(var _loc2_ in battleRounds)
{
if(_loc2_.attackerA)
{
_loc1_ = _loc1_ + (_loc2_.damage + _loc2_.dotDamage);
}
else
{
_loc1_ = _loc1_ + _loc2_.backfireDamage;
}
}
return _loc1_;
}
public function get profileBTotalDamage() : int
{
var _loc1_:int = 0;
var _loc4_:int = 0;
var _loc3_:* = battleRounds;
for each(var _loc2_ in battleRounds)
{
if(_loc2_.attackerB)
{
_loc1_ = _loc1_ + (_loc2_.damage + _loc2_.dotDamage);
}
else
{
_loc1_ = _loc1_ + _loc2_.backfireDamage;
}
}
return _loc1_;
}
public function get profileAEndHitPoints() : int
{
return profileAHitPoints - profileBTotalDamage;
}
public function get profileBEndHitPoints() : int
{
return profileBHitPoints - profileATotalDamage;
}
public function get profileAIsWinner() : Boolean
{
return winner == "a";
}
public function get profileAAppearance() : TypedObject
{
if(_profileAAppearance != null)
{
return _profileAAppearance;
}
calculateRounds();
return _profileAAppearance;
}
public function get profileBAppearance() : TypedObject
{
if(_profileBAppearance != null)
{
return _profileBAppearance;
}
calculateRounds();
return _profileBAppearance;
}
public function get profileABattleEffects() : Object
{
if(profileAAppearance == null || !profileAAppearance.hasData("effects"))
{
return {};
}
return profileAAppearance.getData("effects");
}
public function get profileBBattleEffects() : Object
{
if(profileBAppearance == null || !profileBAppearance.hasData("effects"))
{
return {};
}
return profileBAppearance.getData("effects");
}
public function get opticalChanges() : Vector.<int>
{
if(profileB.hasData("oc",true))
{
return profileB.getIntVector("oc");
}
return null;
}
public function get battleRounds() : Vector.<CharacterBattleRound>
{
if(_battleRounds != null)
{
return _battleRounds;
}
calculateRounds();
return _battleRounds;
}
private function calculateRounds() : void
{
var _loc2_:* = null;
var _loc3_:* = null;
var _loc4_:* = null;
if(_battleRounds == null)
{
_battleRounds = new Vector.<CharacterBattleRound>();
_loc2_ = rounds;
if(_loc2_ != "")
{
try
{
_loc3_ = new TypedObject(JsonUtil.decode(_loc2_));
if(_loc3_.hasData("rounds"))
{
if(_loc3_.hasData("profile_a_appearance"))
{
_profileAAppearance = _loc3_.getTypedObject("profile_a_appearance");
}
if(_loc3_.hasData("profile_b_appearance"))
{
_profileBAppearance = _loc3_.getTypedObject("profile_b_appearance");
}
_loc3_ = _loc3_.getTypedObject("rounds");
}
var _loc7_:int = 0;
var _loc6_:* = _loc3_.rawData;
for each(var _loc1_ in _loc3_.rawData)
{
_loc4_ = new CharacterBattleRound(_loc1_);
_battleRounds.push(_loc4_);
}
return;
}
catch(e:Error)
{
Logger.debug("[Battle] Exception: \'" + e.message + "\'");
Logger.debug("[Battle] JSON: \'" + _loc2_ + "\'");
return;
}
}
}
}
}
}
| 28.035874
| 92
| 0.503999
|
da081abbedb3e1f5efbccc470fd3edf630cd2854
| 537
|
as
|
ActionScript
|
com/as3dmod/util/Phase.as
|
nerdyglasses/unfinished-as3-pageflip
|
1fb64c11ea5af062bcdc887938ccd630d2a8c904
|
[
"MIT"
] | 1
|
2019-03-17T13:24:21.000Z
|
2019-03-17T13:24:21.000Z
|
com/as3dmod/util/Phase.as
|
nerdyglasses/unfinished-as3-pageflip
|
1fb64c11ea5af062bcdc887938ccd630d2a8c904
|
[
"MIT"
] | null | null | null |
com/as3dmod/util/Phase.as
|
nerdyglasses/unfinished-as3-pageflip
|
1fb64c11ea5af062bcdc887938ccd630d2a8c904
|
[
"MIT"
] | null | null | null |
package com.as3dmod.util {
public class Phase {
private var v:Number;
public function Phase(v:Number=0) {
this.v = v;
}
public function get value():Number {
return v;
}
public function set value(v:Number):void {
this.v = v;
}
public function get phasedValue():Number {
return Math.sin(v);
}
public function get absPhasedValue():Number {
return Math.abs(phasedValue);
}
public function get normValue():Number {
return (phasedValue+1)/2;
}
}
}
| 16.78125
| 48
| 0.597765
|
ee54350a6ef2f93c8f6663a4fd1a61746e2cfa31
| 1,615
|
as
|
ActionScript
|
ASLib/src/com/sbhave/nativeExtensions/zbar/Size.as
|
esdebon/qr-zbar-ane
|
95a3a57d4bb597dbe3db2b0116dd6c7b1be44c84
|
[
"MIT"
] | 57
|
2015-01-14T08:19:46.000Z
|
2019-08-18T04:45:53.000Z
|
ASLib/src/com/sbhave/nativeExtensions/zbar/Size.as
|
esdebon/qr-zbar-ane
|
95a3a57d4bb597dbe3db2b0116dd6c7b1be44c84
|
[
"MIT"
] | 30
|
2015-01-07T09:21:53.000Z
|
2019-08-07T04:37:05.000Z
|
ASLib/src/com/sbhave/nativeExtensions/zbar/Size.as
|
esdebon/qr-zbar-ane
|
95a3a57d4bb597dbe3db2b0116dd6c7b1be44c84
|
[
"MIT"
] | 15
|
2015-02-12T18:55:24.000Z
|
2021-03-24T03:35:28.000Z
|
/*
* Copyright (c) 2014 Saumitra R Bhave
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* File : /Users/saumib/projects/repos/qr-zbar-ane/ASLib/src/com/sbhave/nativeExtensions/zbar/Size.as
*/
/**
* Created by saumib on 09/11/14.
*/
package com.sbhave.nativeExtensions.zbar {
public class Size {
private var _width:int;
private var _height:int;
public function Size(w:int,h:int) {
_width = w;
_height = h;
}
public function get width():int{
return _width;
}
public function get height():int{
return _height;
}
}
}
| 34.361702
| 101
| 0.720743
|
064a64da71f1b2143301a658154b31e3d104b41d
| 1,545
|
as
|
ActionScript
|
frameworks/projects/charts/src/mx/charts/styles/metadata/GapStyles.as
|
blackjyn/flex-sdk
|
61aa3601c8c57f2855e18e11fa16f4180de42e05
|
[
"ECL-2.0",
"Apache-2.0"
] | 306
|
2017-10-05T14:28:14.000Z
|
2022-01-25T09:30:45.000Z
|
frameworks/projects/charts/src/mx/charts/styles/metadata/GapStyles.as
|
blackjyn/flex-sdk
|
61aa3601c8c57f2855e18e11fa16f4180de42e05
|
[
"ECL-2.0",
"Apache-2.0"
] | 995
|
2017-09-29T16:42:20.000Z
|
2022-03-30T11:06:36.000Z
|
frameworks/projects/charts/src/mx/charts/styles/metadata/GapStyles.as
|
blackjyn/flex-sdk
|
61aa3601c8c57f2855e18e11fa16f4180de42e05
|
[
"ECL-2.0",
"Apache-2.0"
] | 132
|
2017-11-02T00:07:24.000Z
|
2022-01-31T11:53:31.000Z
|
////////////////////////////////////////////////////////////////////////////////
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////////
/**
* Number of pixels between children in the horizontal direction.
* The default value is 8.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
[Style(name="horizontalGap", type="Number", format="Length", inherit="no")]
/**
* Number of pixels between children in the vertical direction.
* The default value is 8.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
[Style(name="verticalGap", type="Number", format="Length", inherit="no")]
| 37.682927
| 80
| 0.640129
|
0dd083ce4e91c1946583b9710070e47b1abfc1f2
| 15,144
|
as
|
ActionScript
|
src/com/evernote/edam/userstore/PublicUserInfo.as
|
evernote/evernote-sdk-as3
|
246ea49eacc6d5e5d03f860b286503d2c3e5ef60
|
[
"Apache-2.0",
"BSD-2-Clause"
] | 5
|
2015-01-05T15:23:41.000Z
|
2020-10-01T01:48:35.000Z
|
src/com/evernote/edam/userstore/PublicUserInfo.as
|
evernote/evernote-sdk-as3
|
246ea49eacc6d5e5d03f860b286503d2c3e5ef60
|
[
"Apache-2.0",
"BSD-2-Clause"
] | null | null | null |
src/com/evernote/edam/userstore/PublicUserInfo.as
|
evernote/evernote-sdk-as3
|
246ea49eacc6d5e5d03f860b286503d2c3e5ef60
|
[
"Apache-2.0",
"BSD-2-Clause"
] | 5
|
2015-01-20T21:10:24.000Z
|
2021-06-24T11:26:51.000Z
|
/**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
package com.evernote.edam.userstore {
import org.apache.thrift.Set;
import org.apache.thrift.type.BigInteger;
import flash.utils.ByteArray;
import flash.utils.Dictionary;
import org.apache.thrift.*;
import org.apache.thrift.meta_data.*;
import org.apache.thrift.protocol.*;
import com.evernote.edam.type.PrivilegeLevel;
/**
* This structure is used to provide publicly-available user information
* about a particular account.
* <dl>
* <dt>userId:</dt>
* <dd>
* The unique numeric user identifier for the user account.
* </dd>
* <dt>shardId:</dt>
* <dd>
* DEPRECATED - Client applications should have no need to use this field.
* </dd>
* <dt>privilege:</dt>
* <dd>
* The privilege level of the account, to determine whether
* this is a Premium or Free account.
* </dd>
* <dt>noteStoreUrl:</dt>
* <dd>
* This field will contain the full URL that clients should use to make
* NoteStore requests to the server shard that contains that user's data.
* I.e. this is the URL that should be used to create the Thrift HTTP client
* transport to send messages to the NoteStore service for the account.
* </dd>
* <dt>webApiUrlPrefix:</dt>
* <dd>
* This field will contain the initial part of the URLs that should be used
* to make requests to Evernote's thin client "web API", which provide
* optimized operations for clients that aren't capable of manipulating
* the full contents of accounts via the full Thrift data model. Clients
* should concatenate the relative path for the various servlets onto the
* end of this string to construct the full URL, as documented on our
* developer web site.
* </dd>
* </dl>
*/
public class PublicUserInfo implements TBase {
private static const STRUCT_DESC:TStruct = new TStruct("PublicUserInfo");
private static const USER_ID_FIELD_DESC:TField = new TField("userId", TType.I32, 1);
private static const SHARD_ID_FIELD_DESC:TField = new TField("shardId", TType.STRING, 2);
private static const PRIVILEGE_FIELD_DESC:TField = new TField("privilege", TType.I32, 3);
private static const USERNAME_FIELD_DESC:TField = new TField("username", TType.STRING, 4);
private static const NOTE_STORE_URL_FIELD_DESC:TField = new TField("noteStoreUrl", TType.STRING, 5);
private static const WEB_API_URL_PREFIX_FIELD_DESC:TField = new TField("webApiUrlPrefix", TType.STRING, 6);
private var _userId:int;
public static const USERID:int = 1;
private var _shardId:String;
public static const SHARDID:int = 2;
private var _privilege:int;
public static const PRIVILEGE:int = 3;
private var _username:String;
public static const USERNAME:int = 4;
private var _noteStoreUrl:String;
public static const NOTESTOREURL:int = 5;
private var _webApiUrlPrefix:String;
public static const WEBAPIURLPREFIX:int = 6;
private var __isset_userId:Boolean = false;
private var __isset_privilege:Boolean = false;
public static const metaDataMap:Dictionary = new Dictionary();
{
metaDataMap[USERID] = new FieldMetaData("userId", TFieldRequirementType.REQUIRED,
new FieldValueMetaData(TType.I32));
metaDataMap[SHARDID] = new FieldMetaData("shardId", TFieldRequirementType.REQUIRED,
new FieldValueMetaData(TType.STRING));
metaDataMap[PRIVILEGE] = new FieldMetaData("privilege", TFieldRequirementType.OPTIONAL,
new FieldValueMetaData(TType.I32));
metaDataMap[USERNAME] = new FieldMetaData("username", TFieldRequirementType.OPTIONAL,
new FieldValueMetaData(TType.STRING));
metaDataMap[NOTESTOREURL] = new FieldMetaData("noteStoreUrl", TFieldRequirementType.OPTIONAL,
new FieldValueMetaData(TType.STRING));
metaDataMap[WEBAPIURLPREFIX] = new FieldMetaData("webApiUrlPrefix", TFieldRequirementType.OPTIONAL,
new FieldValueMetaData(TType.STRING));
}
{
FieldMetaData.addStructMetaDataMap(PublicUserInfo, metaDataMap);
}
public function PublicUserInfo() {
}
public function get userId():int {
return this._userId;
}
public function set userId(userId:int):void {
this._userId = userId;
this.__isset_userId = true;
}
public function unsetUserId():void {
this.__isset_userId = false;
}
// Returns true if field userId is set (has been assigned a value) and false otherwise
public function isSetUserId():Boolean {
return this.__isset_userId;
}
public function get shardId():String {
return this._shardId;
}
public function set shardId(shardId:String):void {
this._shardId = shardId;
}
public function unsetShardId():void {
this.shardId = null;
}
// Returns true if field shardId is set (has been assigned a value) and false otherwise
public function isSetShardId():Boolean {
return this.shardId != null;
}
public function get privilege():int {
return this._privilege;
}
public function set privilege(privilege:int):void {
this._privilege = privilege;
this.__isset_privilege = true;
}
public function unsetPrivilege():void {
this.__isset_privilege = false;
}
// Returns true if field privilege is set (has been assigned a value) and false otherwise
public function isSetPrivilege():Boolean {
return this.__isset_privilege;
}
public function get username():String {
return this._username;
}
public function set username(username:String):void {
this._username = username;
}
public function unsetUsername():void {
this.username = null;
}
// Returns true if field username is set (has been assigned a value) and false otherwise
public function isSetUsername():Boolean {
return this.username != null;
}
public function get noteStoreUrl():String {
return this._noteStoreUrl;
}
public function set noteStoreUrl(noteStoreUrl:String):void {
this._noteStoreUrl = noteStoreUrl;
}
public function unsetNoteStoreUrl():void {
this.noteStoreUrl = null;
}
// Returns true if field noteStoreUrl is set (has been assigned a value) and false otherwise
public function isSetNoteStoreUrl():Boolean {
return this.noteStoreUrl != null;
}
public function get webApiUrlPrefix():String {
return this._webApiUrlPrefix;
}
public function set webApiUrlPrefix(webApiUrlPrefix:String):void {
this._webApiUrlPrefix = webApiUrlPrefix;
}
public function unsetWebApiUrlPrefix():void {
this.webApiUrlPrefix = null;
}
// Returns true if field webApiUrlPrefix is set (has been assigned a value) and false otherwise
public function isSetWebApiUrlPrefix():Boolean {
return this.webApiUrlPrefix != null;
}
public function setFieldValue(fieldID:int, value:*):void {
switch (fieldID) {
case USERID:
if (value == null) {
unsetUserId();
} else {
this.userId = value;
}
break;
case SHARDID:
if (value == null) {
unsetShardId();
} else {
this.shardId = value;
}
break;
case PRIVILEGE:
if (value == null) {
unsetPrivilege();
} else {
this.privilege = value;
}
break;
case USERNAME:
if (value == null) {
unsetUsername();
} else {
this.username = value;
}
break;
case NOTESTOREURL:
if (value == null) {
unsetNoteStoreUrl();
} else {
this.noteStoreUrl = value;
}
break;
case WEBAPIURLPREFIX:
if (value == null) {
unsetWebApiUrlPrefix();
} else {
this.webApiUrlPrefix = value;
}
break;
default:
throw new ArgumentError("Field " + fieldID + " doesn't exist!");
}
}
public function getFieldValue(fieldID:int):* {
switch (fieldID) {
case USERID:
return this.userId;
case SHARDID:
return this.shardId;
case PRIVILEGE:
return this.privilege;
case USERNAME:
return this.username;
case NOTESTOREURL:
return this.noteStoreUrl;
case WEBAPIURLPREFIX:
return this.webApiUrlPrefix;
default:
throw new ArgumentError("Field " + fieldID + " doesn't exist!");
}
}
// Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
public function isSet(fieldID:int):Boolean {
switch (fieldID) {
case USERID:
return isSetUserId();
case SHARDID:
return isSetShardId();
case PRIVILEGE:
return isSetPrivilege();
case USERNAME:
return isSetUsername();
case NOTESTOREURL:
return isSetNoteStoreUrl();
case WEBAPIURLPREFIX:
return isSetWebApiUrlPrefix();
default:
throw new ArgumentError("Field " + fieldID + " doesn't exist!");
}
}
public function read(iprot:TProtocol):void {
var field:TField;
iprot.readStructBegin();
while (true)
{
field = iprot.readFieldBegin();
if (field.type == TType.STOP) {
break;
}
switch (field.id)
{
case USERID:
if (field.type == TType.I32) {
this.userId = iprot.readI32();
this.__isset_userId = true;
} else {
TProtocolUtil.skip(iprot, field.type);
}
break;
case SHARDID:
if (field.type == TType.STRING) {
this.shardId = iprot.readString();
} else {
TProtocolUtil.skip(iprot, field.type);
}
break;
case PRIVILEGE:
if (field.type == TType.I32) {
this.privilege = iprot.readI32();
this.__isset_privilege = true;
} else {
TProtocolUtil.skip(iprot, field.type);
}
break;
case USERNAME:
if (field.type == TType.STRING) {
this.username = iprot.readString();
} else {
TProtocolUtil.skip(iprot, field.type);
}
break;
case NOTESTOREURL:
if (field.type == TType.STRING) {
this.noteStoreUrl = iprot.readString();
} else {
TProtocolUtil.skip(iprot, field.type);
}
break;
case WEBAPIURLPREFIX:
if (field.type == TType.STRING) {
this.webApiUrlPrefix = iprot.readString();
} else {
TProtocolUtil.skip(iprot, field.type);
}
break;
default:
TProtocolUtil.skip(iprot, field.type);
break;
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
if (!__isset_userId) {
throw new TProtocolError(TProtocolError.UNKNOWN, "Required field 'userId' was not found in serialized data! Struct: " + toString());
}
validate();
}
public function write(oprot:TProtocol):void {
validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(USER_ID_FIELD_DESC);
oprot.writeI32(this.userId);
oprot.writeFieldEnd();
if (this.shardId != null) {
oprot.writeFieldBegin(SHARD_ID_FIELD_DESC);
oprot.writeString(this.shardId);
oprot.writeFieldEnd();
}
if (isSetPrivilege()) {
oprot.writeFieldBegin(PRIVILEGE_FIELD_DESC);
oprot.writeI32(this.privilege);
oprot.writeFieldEnd();
}
if (this.username != null) {
if (isSetUsername()) {
oprot.writeFieldBegin(USERNAME_FIELD_DESC);
oprot.writeString(this.username);
oprot.writeFieldEnd();
}
}
if (this.noteStoreUrl != null) {
if (isSetNoteStoreUrl()) {
oprot.writeFieldBegin(NOTE_STORE_URL_FIELD_DESC);
oprot.writeString(this.noteStoreUrl);
oprot.writeFieldEnd();
}
}
if (this.webApiUrlPrefix != null) {
if (isSetWebApiUrlPrefix()) {
oprot.writeFieldBegin(WEB_API_URL_PREFIX_FIELD_DESC);
oprot.writeString(this.webApiUrlPrefix);
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
public function toString():String {
var ret:String = new String("PublicUserInfo(");
var first:Boolean = true;
ret += "userId:";
ret += this.userId;
first = false;
if (!first) ret += ", ";
ret += "shardId:";
if (this.shardId == null) {
ret += "null";
} else {
ret += this.shardId;
}
first = false;
if (isSetPrivilege()) {
if (!first) ret += ", ";
ret += "privilege:";
var privilege_name:String = com.evernote.edam.type.PrivilegeLevel.VALUES_TO_NAMES[this.privilege];
if (privilege_name != null) {
ret += privilege_name;
ret += " (";
}
ret += this.privilege;
if (privilege_name != null) {
ret += ")";
}
first = false;
}
if (isSetUsername()) {
if (!first) ret += ", ";
ret += "username:";
if (this.username == null) {
ret += "null";
} else {
ret += this.username;
}
first = false;
}
if (isSetNoteStoreUrl()) {
if (!first) ret += ", ";
ret += "noteStoreUrl:";
if (this.noteStoreUrl == null) {
ret += "null";
} else {
ret += this.noteStoreUrl;
}
first = false;
}
if (isSetWebApiUrlPrefix()) {
if (!first) ret += ", ";
ret += "webApiUrlPrefix:";
if (this.webApiUrlPrefix == null) {
ret += "null";
} else {
ret += this.webApiUrlPrefix;
}
first = false;
}
ret += ")";
return ret;
}
public function validate():void {
// check for required fields
// alas, we cannot check 'userId' because it's a primitive and you chose the non-beans generator.
if (shardId == null) {
throw new TProtocolError(TProtocolError.UNKNOWN, "Required field 'shardId' was not present! Struct: " + toString());
}
// check that fields of type enum have valid values
if (isSetPrivilege() && !com.evernote.edam.type.PrivilegeLevel.VALID_VALUES.contains(privilege)){
throw new TProtocolError(TProtocolError.UNKNOWN, "The field 'privilege' has been assigned the invalid value " + privilege);
}
}
}
}
| 30.843177
| 140
| 0.602219
|
50dffc4fd4a867263fee39dc6b9a9741bcadc6a5
| 698
|
as
|
ActionScript
|
Entry/src/user/data/UserConfig.as
|
w2h/SomeTool
|
5f4df7bd6e226ce984bf6bd7264e9e790dd1e8ac
|
[
"MIT"
] | 6
|
2016-10-13T18:08:03.000Z
|
2021-05-30T20:46:51.000Z
|
Entry/src/user/data/UserConfig.as
|
w2h/SomeTool
|
5f4df7bd6e226ce984bf6bd7264e9e790dd1e8ac
|
[
"MIT"
] | null | null | null |
Entry/src/user/data/UserConfig.as
|
w2h/SomeTool
|
5f4df7bd6e226ce984bf6bd7264e9e790dd1e8ac
|
[
"MIT"
] | 1
|
2016-10-13T18:17:38.000Z
|
2016-10-13T18:17:38.000Z
|
package user.data
{
public class UserConfig
{
public function UserConfig()
{
super();
}
public static function getProfessionsStr(param1:int) : String
{
/*
* Decompilation error
* Code may be obfuscated
* Tip: You can try enabling "Automatic deobfuscation" in Settings
* Error type: IndexOutOfBoundsException (Index: 6, Size: 6)
*/
throw new flash.errors.IllegalOperationError("Not decompiled due to error");
}
public static function getHeadUrl(param1:uint) : String
{
return "assets/user/player/head/" + param1 + ".png";
}
}
}
| 24.928571
| 85
| 0.565903
|
c32b4d2ad48627ee3f20d5637086e37ddc9cead0
| 262
|
as
|
ActionScript
|
src/com/megaeyes/netmanagement/topology/domain/query/ReqDeviceChild.as
|
QiaoG/nm-client-topology
|
7ae20f9b485c9e5d8398b2201187194f61281a20
|
[
"Apache-2.0"
] | 1
|
2018-09-01T15:26:00.000Z
|
2018-09-01T15:26:00.000Z
|
src/com/megaeyes/netmanagement/topology/domain/query/ReqDeviceChild.as
|
QiaoG/nm-client-topology
|
7ae20f9b485c9e5d8398b2201187194f61281a20
|
[
"Apache-2.0"
] | null | null | null |
src/com/megaeyes/netmanagement/topology/domain/query/ReqDeviceChild.as
|
QiaoG/nm-client-topology
|
7ae20f9b485c9e5d8398b2201187194f61281a20
|
[
"Apache-2.0"
] | 1
|
2018-09-01T15:26:01.000Z
|
2018-09-01T15:26:01.000Z
|
/**
* @author GQ
* create time:2013-8-12- 17:32:28
*/
package com.megaeyes.netmanagement.topology.domain.query
{
public class ReqDeviceChild
{
public var parentId:String;
public var childTypes:Array;
public function ReqDeviceChild()
{
}
}
}
| 15.411765
| 56
| 0.69084
|
9577156ff6ba11af54bcca582bde45fc7f8de384
| 1,138
|
as
|
ActionScript
|
SVGRenderer/src/com/lorentz/SVG/events/SVGEvent.as
|
lucaslorentz/AS3SVGRenderer
|
4116d6a36f5ae95f2c0c55b0ff3fbc8ee8227edf
|
[
"MIT"
] | 24
|
2016-07-10T03:26:39.000Z
|
2021-11-17T13:01:52.000Z
|
SVGRenderer/src/com/lorentz/SVG/events/SVGEvent.as
|
velara3/AS3SVGRenderer
|
0a2ac809651cf70fe11dc8156f6b464691b186fa
|
[
"MIT"
] | 6
|
2015-04-23T18:17:18.000Z
|
2016-06-03T05:44:53.000Z
|
SVGRenderer/src/com/lorentz/SVG/events/SVGEvent.as
|
velara3/AS3SVGRenderer
|
0a2ac809651cf70fe11dc8156f6b464691b186fa
|
[
"MIT"
] | 13
|
2016-08-07T09:11:42.000Z
|
2021-10-21T12:03:35.000Z
|
package com.lorentz.SVG.events {
import com.lorentz.SVG.display.base.SVGElement;
import flash.events.Event;
public class SVGEvent extends Event {
public static const INVALIDATE:String = "invalidate";
public static const SYNC_VALIDATED:String = "syncValidated";
public static const ASYNC_VALIDATED:String = "asyncValidated";
public static const VALIDATED:String = "validated";
public static const RENDERED:String = "rendered";
public static const PARSE_START:String = "parseStart";
public static const PARSE_COMPLETE:String = "parseComplete";
public static const ELEMENT_ADDED:String = "elementAdded";
public static const ELEMENT_REMOVED:String = "elementRemoved";
private var _element:SVGElement;
public function get element():SVGElement {
return _element;
}
public function SVGEvent(type:String, element:SVGElement = null, bubbles:Boolean = false, cancelable:Boolean = false){
super(type, bubbles, cancelable);
_element = element;
}
override public function clone():Event{
return new SVGEvent(type, element, bubbles, cancelable);
}
}
}
| 34.484848
| 121
| 0.725835
|
11a006279453cfeab3f8c4fcd748c7712f55efeb
| 1,513
|
as
|
ActionScript
|
data/DofusInvoker/scripts/com/hurlant/crypto/symmetric/CBCMode.as
|
LucBerge/Datafus
|
6ff545662c99f5f727c5a8522da853fbbd99782a
|
[
"MIT"
] | 10
|
2019-11-10T21:24:38.000Z
|
2021-05-24T23:56:36.000Z
|
data/DofusInvoker/scripts/com/hurlant/crypto/symmetric/CBCMode.as
|
LucBerge/Datafus
|
6ff545662c99f5f727c5a8522da853fbbd99782a
|
[
"MIT"
] | 15
|
2021-01-27T21:41:58.000Z
|
2021-03-03T16:47:19.000Z
|
data/DofusInvoker/scripts/com/hurlant/crypto/symmetric/CBCMode.as
|
bot4dofus/Datafus
|
126838a84b0e41d5486d735aa38d78deeb8d6681
|
[
"MIT"
] | 3
|
2021-11-08T22:58:20.000Z
|
2022-02-09T22:22:33.000Z
|
package com.hurlant.crypto.symmetric
{
import flash.utils.ByteArray;
public class CBCMode extends IVMode implements IMode
{
public function CBCMode(key:ISymmetricKey, padding:IPad = null)
{
super(key,padding);
}
public function encrypt(src:ByteArray) : void
{
var j:uint = 0;
padding.pad(src);
var vector:ByteArray = getIV4e();
for(var i:uint = 0; i < src.length; i += blockSize)
{
for(j = 0; j < blockSize; j++)
{
src[i + j] ^= vector[j];
}
key.encrypt(src,i);
vector.position = 0;
vector.writeBytes(src,i,blockSize);
}
}
public function decrypt(src:ByteArray) : void
{
var j:uint = 0;
var vector:ByteArray = getIV4d();
var tmp:ByteArray = new ByteArray();
for(var i:uint = 0; i < src.length; i += blockSize)
{
tmp.position = 0;
tmp.writeBytes(src,i,blockSize);
key.decrypt(src,i);
for(j = 0; j < blockSize; j++)
{
src[i + j] ^= vector[j];
}
vector.position = 0;
vector.writeBytes(tmp,0,blockSize);
}
padding.unpad(src);
}
public function toString() : String
{
return key.toString() + "-cbc";
}
}
}
| 26.54386
| 70
| 0.455387
|
b9578753713f3b00498758d21ba9fe4689ce63b9
| 1,801
|
as
|
ActionScript
|
Mini Sandbox/src/ColoursRef.as
|
StephenBirsa/Mini-Sandbox-AS3
|
fb4140619127c599f9b5de8a96f753a9debe4b20
|
[
"MIT"
] | null | null | null |
Mini Sandbox/src/ColoursRef.as
|
StephenBirsa/Mini-Sandbox-AS3
|
fb4140619127c599f9b5de8a96f753a9debe4b20
|
[
"MIT"
] | null | null | null |
Mini Sandbox/src/ColoursRef.as
|
StephenBirsa/Mini-Sandbox-AS3
|
fb4140619127c599f9b5de8a96f753a9debe4b20
|
[
"MIT"
] | null | null | null |
package {
/**
* ...
* @author Stephen Birsa
*/
final public class ColoursRef {
final public function ColoursRef() {}
final public function getColour(id:int):int {
id == 0 ? id = 0x000000 : null; //BLACK 0
id == 1 ? id = 0x111111 : null;
id == 2 ? id = 0x333333 : null;
id == 3 ? id = 0x666666 : null;
id == 4 ? id = 0x999999 : null;
id == 5 ? id = 0xCCFFCC : null;
id == 6 ? id = 0xCCCCCC : null;
id == 7 ? id = 0x119911 : null;
id == 8 ? id = 0x559955 : null;
id == 9 ? id = 0x99FF99 : null;
id == 10 ? id = 0x995599 : null;
id == 11 ? id = 0xFF55FF : null;
id == 12 ? id = 0xFF00FF : null;
id == 13 ? id = 0xCC00CC : null;
id == 14 ? id = 0x770044 : null;
id == 15 ? id = 0x770011 : null;
id == 16 ? id = 0x440044 : null;
id == 17 ? id = 0x440011 : null;
id == 18 ? id = 0x110011 : null;
id == 19 ? id = 0x00FFFF : null;
id == 20 ? id = 0xFFFF00 : null;
id == 21 ? id = 0xAAAA00 : null;
id == 22 ? id = 0x55FF00 : null;
id == 23 ? id = 0xFF5500 : null;
id == 24 ? id = 0x113300 : null;
id == 25 ? id = 0x111100 : null;
id == 26 ? id = 0x00AAAA : null;
id == 27 ? id = 0x00FF55 : null;
id == 28 ? id = 0x001133 : null;
id == 29 ? id = 0x001111 : null;
id == 30 ? id = 0xFF0000 : null;
id == 31 ? id = 0x770000 : null;
id == 32 ? id = 0x440000 : null;
id == 33 ? id = 0x110000 : null;
id == 34 ? id = 0x00FF00 : null;
id == 35 ? id = 0x007700 : null;
id == 36 ? id = 0x004400 : null;
id == 37 ? id = 0x001100 : null;
id == 38 ? id = 0x0000FF : null;
id == 39 ? id = 0x000077 : null;
id == 40 ? id = 0x000044 : null;
id == 41 ? id = 0x000011 : null;
id == 42 ? id = 0xEEEEEE : null;
id == 43 ? id = 0xFFFFFF : null; //WHITE 43
return id;
}
}
}
| 30.016667
| 47
| 0.510272
|
1aa738f570226f1e5de7416ffb8b5c3ed03b1a48
| 942
|
as
|
ActionScript
|
src/amfSocket/events/AmfSocketEvent.as
|
leonlee/amf_socket
|
858952800f12233e6ec24bb3e206b43656278979
|
[
"MIT"
] | null | null | null |
src/amfSocket/events/AmfSocketEvent.as
|
leonlee/amf_socket
|
858952800f12233e6ec24bb3e206b43656278979
|
[
"MIT"
] | null | null | null |
src/amfSocket/events/AmfSocketEvent.as
|
leonlee/amf_socket
|
858952800f12233e6ec24bb3e206b43656278979
|
[
"MIT"
] | null | null | null |
package amfSocket.events {
import flash.events.Event;
public class AmfSocketEvent extends Event {
//
// Constants.
//
public static const CONNECTED:String = 'AMF_SOCKET_EVENT_CONNECTED';
public static const DISCONNECTED:String = 'AMF_SOCKET_EVENT_DISCONNECTED';
public static const IO_ERROR:String = 'AMF_SOCKET_EVENT_IO_ERROR';
public static const SECURITY_ERROR:String = 'AMF_SOCKET_EVENT_SECURITY_ERROR';
public static const RECEIVED_OBJECT:String = 'AMF_SOCKET_EVENT_RECEIVED_OBJECT';
//
// Instance variables.
//
private var _data:Object;
//
// Constructor.
//
public function AmfSocketEvent(type:String, data:Object = null, bubbles:Boolean = false, cancelable:Boolean = false) {
_data = data;
super(type, bubbles, cancelable);
}
//
// Getters and setters.
//
public function get data():Object {
return _data;
}
}
}
| 23.55
| 122
| 0.677282
|
1f7f844e49fdebfdeb2117f405066d8774647b6f
| 94
|
as
|
ActionScript
|
data/DofusInvoker/scripts/cmodule/lua_wrapper/__2E_str2350370.as
|
LucBerge/Datafus
|
6ff545662c99f5f727c5a8522da853fbbd99782a
|
[
"MIT"
] | 10
|
2019-11-10T21:24:38.000Z
|
2021-05-24T23:56:36.000Z
|
data/DofusInvoker/scripts/cmodule/lua_wrapper/__2E_str2350370.as
|
LucBerge/Datafus
|
6ff545662c99f5f727c5a8522da853fbbd99782a
|
[
"MIT"
] | 15
|
2021-01-27T21:41:58.000Z
|
2021-03-03T16:47:19.000Z
|
data/DofusInvoker/scripts/cmodule/lua_wrapper/__2E_str2350370.as
|
bot4dofus/Datafus
|
126838a84b0e41d5486d735aa38d78deeb8d6681
|
[
"MIT"
] | 3
|
2021-11-08T22:58:20.000Z
|
2022-02-09T22:22:33.000Z
|
package cmodule.lua_wrapper
{
const __2E_str2350370:int = gstaticInitter.alloc(5,1);
}
| 18.8
| 58
| 0.734043
|
9291f9f3e2e7ebedadd3f0790de39c573117422f
| 398
|
as
|
ActionScript
|
flash/src/childsifoundation/event/IntroEvent.as
|
childsi/buyabrick
|
8ab720a3f6effab8cf0e914271883dbcb8786746
|
[
"MIT"
] | 1
|
2016-05-09T01:48:31.000Z
|
2016-05-09T01:48:31.000Z
|
flash/src/childsifoundation/event/IntroEvent.as
|
childsi/buyabrick
|
8ab720a3f6effab8cf0e914271883dbcb8786746
|
[
"MIT"
] | 4
|
2020-02-25T06:11:47.000Z
|
2021-09-27T20:58:39.000Z
|
flash/src/childsifoundation/event/IntroEvent.as
|
childsi/buyabrick
|
8ab720a3f6effab8cf0e914271883dbcb8786746
|
[
"MIT"
] | null | null | null |
package childsifoundation.event
{
import flash.events.Event;
public class IntroEvent extends Event
{
public static const ON_INTRO_START : String = "onIntroStart";
public static const ON_INTRO_COMPLETE : String = "onIntroComplete";
//
public var blahX : String;
//
public function IntroEvent( type:String, blah:String = "" )
{
super(type);
//
this.blahX = blah
}
}
}
| 19.9
| 69
| 0.688442
|
9b91d964354ce3993841fe463dbd570bc91318ff
| 23,444
|
as
|
ActionScript
|
src/ui/media/MediaLibrary.as
|
GarageGames/DevProGameSnap
|
c3e86fd3d0ef8661aee2a128409da46747f22444
|
[
"MIT"
] | 8
|
2016-04-11T22:53:32.000Z
|
2021-01-02T23:57:41.000Z
|
src/ui/media/MediaLibrary.as
|
permikomnaskaltara/DevProGameStack
|
c3e86fd3d0ef8661aee2a128409da46747f22444
|
[
"MIT"
] | null | null | null |
src/ui/media/MediaLibrary.as
|
permikomnaskaltara/DevProGameStack
|
c3e86fd3d0ef8661aee2a128409da46747f22444
|
[
"MIT"
] | 10
|
2016-07-19T02:25:01.000Z
|
2020-10-14T14:09:59.000Z
|
/*
* Scratch Project Editor and Player
* Copyright (C) 2014 Massachusetts Institute of Technology
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package ui.media {
import flash.display.BitmapData;
import flash.display.Graphics;
import flash.display.Loader;
import flash.display.Shape;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.media.Sound;
import flash.net.FileReference;
import flash.net.FileReferenceList;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.utils.ByteArray;
import flash.utils.setTimeout;
import assets.Resources;
import extensions.ScratchExtension;
import scratch.ScratchCostume;
import scratch.ScratchSound;
import scratch.ScratchSprite;
import scratch.ScratchStage;
import sound.mp3.MP3Loader;
import translation.Translator;
import uiwidgets.Button;
import uiwidgets.DialogBox;
import uiwidgets.IconButton;
import uiwidgets.ScrollFrame;
import uiwidgets.ScrollFrameContents;
import util.GIFDecoder;
import util.JSON;
import util.ObjReader;
import util.OldProjectReader;
import util.ProjectIO;
public class MediaLibrary extends Sprite {
private const titleFormat:TextFormat = new TextFormat(CSS.font, 24, 0x444143);
private static const backdropCategories:Array = [
'All', 'Indoors', 'Outdoors', 'Other'];
private static const costumeCategories:Array = [
'All', 'Animals', 'Fantasy', 'Letters', 'People', 'Projectile', 'Things', 'Tower', 'Transportation'];
private static const extensionCategories:Array = [
'All', 'Hardware'];
private static const soundCategories:Array = [
'All', 'Animal', 'Effects', 'Electronic', 'Human', 'Instruments',
'Music Loops', 'Percussion', 'Vocals'];
private static const backdropThemes:Array = [
'Castle', 'City', 'Flying', 'Holiday', 'Music and Dance', 'Nature', 'Physics Launcher', 'Prospector Peril', 'Space', 'Sports', 'Tower Defense', 'Underwater'];
private static const costumeThemes:Array = [
'Castle', 'City', 'Flying', 'Holiday', 'Music and Dance', 'Physics Launcher', 'Prospector Peril', 'Space', 'Sports', 'Tower Defense', 'Underwater', 'Walking'];
private static const imageTypes:Array = ['All', 'Bitmap', 'Vector'];
private static const spriteFeatures:Array = ['All', 'Scripts', 'Costumes > 1', 'Sounds'];
protected var app:Scratch;
private var assetType:String;
protected var whenDone:Function;
protected var allItems:Array = [];
private var title:TextField;
private var outerFrame:Shape;
private var innerFrame:Shape;
private var resultsFrame:ScrollFrame;
protected var resultsPane:ScrollFrameContents;
protected var categoryFilter:MediaFilter;
protected var themeFilter:MediaFilter;
protected var imageTypeFilter:MediaFilter;
protected var spriteFeaturesFilter:MediaFilter;
private var closeButton:IconButton;
private var okayButton:Button;
private var cancelButton:Button;
private static var libraryCache:Array; // cache of all mediaLibrary entries
public function MediaLibrary(app:Scratch, type:String, whenDone:Function) {
this.app = app;
this.assetType = type;
this.whenDone = whenDone;
addChild(outerFrame = new Shape());
addChild(innerFrame = new Shape());
addTitle();
addFilters();
addResultsFrame();
addButtons();
}
public static function strings():Array {
var result:Array = [
'Backdrop Library', 'Costume Library', 'Sprite Library', 'Sound Library',
'Category', 'Theme', 'Type', 'Features',
'Uploading image...', 'Uploading sprite...', 'Uploading sound...',
'Importing sound...', 'Converting mp3...',
];
result = result.concat(backdropCategories);
result = result.concat(costumeCategories);
result = result.concat(extensionCategories);
result = result.concat(soundCategories);
result = result.concat(backdropThemes);
result = result.concat(costumeThemes);
result = result.concat(imageTypes);
result = result.concat(spriteFeatures);
return result;
}
public function open():void {
app.closeTips();
app.mediaLibrary = this;
setWidthHeight(app.stage.stageWidth, app.stage.stageHeight);
app.addChild(this);
viewLibrary();
}
public function importFromDisk():void {
if (parent) close();
if (assetType == 'sound') importSoundsFromDisk();
else importImagesOrSpritesFromDisk();
}
public function close(ignore:* = null):void {
stopLoadingThumbnails();
parent.removeChild(this);
app.mediaLibrary = null;
app.reopenTips();
}
public function setWidthHeight(w:int, h:int):void {
const inset:int = 30; // inset around entire dialog
const rightInset:int = 15;
title.x = inset + 20;
title.y = inset + 15;
closeButton.x = w - (inset + closeButton.width + 10);
closeButton.y = inset + 10;
cancelButton.x = w - (inset + cancelButton.width + rightInset);
cancelButton.y = h - (inset + cancelButton.height + 10);
okayButton.x = cancelButton.x - (okayButton.width + 10);
okayButton.y = cancelButton.y;
drawBackground(w, h);
outerFrame.x = inset;
outerFrame.y = inset;
drawOuterFrame(w - (2 * inset), h - (2 * inset));
innerFrame.x = title.x + title.textWidth + 25;
innerFrame.y = inset + 35;
drawInnerFrame(w - (innerFrame.x + inset + rightInset), h - (innerFrame.y + inset + cancelButton.height + 20));
resultsFrame.x = innerFrame.x + 5;
resultsFrame.y = innerFrame.y + 5;
resultsFrame.setWidthHeight(innerFrame.width - 10, innerFrame.height - 10);
var nextX:int = title.x + 3;
var nextY:int = inset + 60;
var spaceBetweenFilteres:int = 12;
categoryFilter.x = nextX;
categoryFilter.y = nextY;
nextY += categoryFilter.height + spaceBetweenFilteres;
if (themeFilter.visible) {
themeFilter.x = nextX;
themeFilter.y = nextY;
nextY += themeFilter.height + spaceBetweenFilteres;
}
if (imageTypeFilter.visible) {
imageTypeFilter.x = nextX;
imageTypeFilter.y = nextY;
nextY += imageTypeFilter.height + spaceBetweenFilteres;
}
if (spriteFeaturesFilter.visible) {
spriteFeaturesFilter.x = nextX;
spriteFeaturesFilter.y = nextY;
}
}
private function drawBackground(w:int, h:int):void {
const bgColor:int = 0;
const bgAlpha:Number = 0.6;
var g:Graphics = this.graphics;
g.clear();
g.beginFill(bgColor, bgAlpha);
g.drawRect(0, 0, w, h);
g.endFill();
}
private function drawOuterFrame(w:int, h:int):void {
var g:Graphics = outerFrame.graphics;
g.clear();
g.beginFill(CSS.tabColor);
g.drawRoundRect(0, 0, w, h, 12, 12);
g.endFill();
}
private function drawInnerFrame(w:int, h:int):void {
var g:Graphics = innerFrame.graphics;
g.clear();
g.beginFill(CSS.white, 1);
g.drawRoundRect(0, 0, w, h, 8, 8);
g.endFill();
}
private function addTitle():void {
var s:String = assetType;
if ('backdrop' == s) s = 'Backdrop Library';
if ('costume' == s) s = 'Costume Library';
if ('extension' == s) s = 'Extension Library';
if ('sprite' == s) s = 'Sprite Library';
if ('sound' == s) s = 'Sound Library';
addChild(title = Resources.makeLabel(Translator.map(s), titleFormat));
}
private function addFilters():void {
var categories:Array = [];
if ('backdrop' == assetType) categories = backdropCategories;
if ('costume' == assetType) categories = costumeCategories;
if ('extension' == assetType) categories = extensionCategories;
if ('sprite' == assetType) categories = costumeCategories;
if ('sound' == assetType) categories = soundCategories;
categoryFilter = new MediaFilter('Category', categories, filterChanged);
addChild(categoryFilter);
themeFilter = new MediaFilter(
'Theme',
('backdrop' == assetType) ? backdropThemes : costumeThemes,
filterChanged);
themeFilter.currentSelection = '';
addChild(themeFilter);
imageTypeFilter = new MediaFilter('Type', imageTypes, filterChanged);
addChild(imageTypeFilter);
spriteFeaturesFilter = new MediaFilter('Features', spriteFeatures, filterChanged);
addChild(spriteFeaturesFilter);
themeFilter.visible = (['sprite', 'costume', 'backdrop'].indexOf(assetType) > -1);
imageTypeFilter.visible = (['sprite', 'costume'].indexOf(assetType) > -1);
spriteFeaturesFilter.visible = ('sprite' == assetType);
spriteFeaturesFilter.visible = false; // disable features filter for now
}
private function filterChanged(filter:MediaFilter):void {
if (filter == categoryFilter) themeFilter.currentSelection = '';
if (filter == themeFilter) categoryFilter.currentSelection = '';
showFilteredItems();
// scroll to top when filters change
resultsPane.y = 0;
resultsFrame.updateScrollbars()
}
private function addResultsFrame():void {
resultsPane = new ScrollFrameContents();
resultsPane.color = CSS.white;
resultsPane.hExtra = 0;
resultsPane.vExtra = 5;
resultsFrame = new ScrollFrame();
resultsFrame.setContents(resultsPane);
addChild(resultsFrame);
}
private function addButtons():void {
addChild(closeButton = new IconButton(close, 'close'));
addChild(okayButton = new Button(Translator.map('OK'), addSelected));
addChild(cancelButton = new Button(Translator.map('Cancel'), close));
}
// -----------------------------
// Library Contents
//------------------------------
private function viewLibrary():void {
function gotLibraryData(data:ByteArray):void {
if (!data) return; // failure
var s:String = data.readUTFBytes(data.length);
libraryCache = util.JSON.parse(stripComments(s)) as Array;
collectEntries();
}
function collectEntries():void {
allItems = [];
for each (var entry:Object in libraryCache) {
if (entry.type == assetType) {
if (entry.tags is Array) entry.category = entry.tags[0];
var info:Array = entry.info as Array;
if (info) {
if ((entry.type == 'backdrop') || (assetType == 'costume')) {
entry.width = info[0];
entry.height = info[1];
}
if (entry.type == 'sound') {
entry.seconds = info[0];
}
if (entry.type == 'sprite') {
entry.scriptCount = info[0];
entry.costumeCount = info[1];
entry.soundCount = info[2];
}
}
allItems.push(new MediaLibraryItem(entry));
}
}
showFilteredItems();
startLoadingThumbnails();
}
if ('extension' == assetType) {
addScratchExtensions();
return;
}
if (!libraryCache) app.server.getMediaLibrary(gotLibraryData);
else collectEntries();
}
protected function addScratchExtensions():void {
const extList:Array = [
ScratchExtension.PicoBoard(),
ScratchExtension.WeDo()];
allItems = [];
for each (var ext:ScratchExtension in extList) {
allItems.push(new MediaLibraryItem({
extension: ext,
name: ext.name,
md5: ext.thumbnailMD5,
tags: ext.tags
}));
}
showFilteredItems();
startLoadingThumbnails();
}
private function stripComments(s:String):String {
// Remove full-line comments starting with '//'. The comment delimiter must be at the very start of the line.
var result:String = '';
for each (var line:String in s.split('\n')) {
var isComment:Boolean = false;
if ((line.length > 0) && (line.charAt(0) == '<')) isComment = true; // Full-line comments starting with '<!--' (added by Gaia).
if ((line.length > 1) && (line.charAt(0) == '/') && (line.charAt(1) == '/')) isComment = true;
if (!isComment) result += line + '\n';
}
return result;
}
protected function showFilteredItems():void {
var tag:String = '';
if (categoryFilter.currentSelection != '') tag = categoryFilter.currentSelection;
if (themeFilter.currentSelection != '') tag = themeFilter.currentSelection;
tag = tag.replace(new RegExp(' ', 'g'), '-'); // e.g., change 'Music and Dance' -> 'Music-and-Dance'
tag = tag.toLowerCase();
var showAll:Boolean = ('all' == tag);
var filtered:Array = [];
for each (var item:MediaLibraryItem in allItems) {
if ((showAll || (item.dbObj.tags.indexOf(tag) > -1)) && hasSelectedFeatures(item.dbObj)) {
filtered.push(item);
}
}
while (resultsPane.numChildren > 0) resultsPane.removeChildAt(0);
appendItems(filtered);
}
private function hasSelectedFeatures(item:Object):Boolean {
var imageType:String = imageTypeFilter.currentSelection;
if (imageTypeFilter.visible && (imageType != 'All')) {
if (imageType == 'Vector') {
if (item.tags.indexOf('vector') == -1) return false;
} else {
if (item.tags.indexOf('vector') != -1) return false;
}
}
var spriteFeatures:String = spriteFeaturesFilter.currentSelection;
if (spriteFeaturesFilter.visible && (spriteFeatures != 'All')) {
if (('Scripts' == spriteFeatures) && (item.scriptCount == 0)) return false;
if (('Costumes > 1' == spriteFeatures) && (item.costumeCount <= 1)) return false;
if (('Sounds' == spriteFeatures) && (item.soundCount == 0)) return false;
}
return true;
}
protected function appendItems(items:Array):void {
if (items.length == 0) return;
var itemWidth:int = (items[0] as MediaLibraryItem).frameWidth + 6;
var totalWidth:int = resultsFrame.width - 15;
var columnCount:int = totalWidth / itemWidth;
var extra:int = (totalWidth - (columnCount * itemWidth)) / columnCount; // extra space per column
var colNum:int = 0;
var nextX:int = 2;
var nextY:int = 2;
for each (var item:MediaLibraryItem in items) {
item.x = nextX;
item.y = nextY;
resultsPane.addChild(item);
nextX += item.frameWidth + 6 + extra;
if (++colNum == columnCount) {
colNum = 0;
nextX = 2;
nextY += item.frameHeight + 5;
}
}
if (nextX > 5) nextY += item.frameHeight + 2; // if there's anything on this line, start a new one
resultsPane.updateSize();
}
public function addSelected():void {
// Close dialog and call whenDone() with an array of selected media items.
var io:ProjectIO = new ProjectIO(app);
close();
for (var i:int = 0; i < resultsPane.numChildren; i++) {
var item:MediaLibraryItem = resultsPane.getChildAt(i) as MediaLibraryItem;
if (item && item.isHighlighted()) {
var md5AndExt:String = item.dbObj.md5;
if (assetType == 'extension') {
whenDone(item.dbObj.extension);
} else if (md5AndExt.slice(-5) == '.json') {
io.fetchSprite(md5AndExt, whenDone);
} else if (assetType == 'sound') {
io.fetchSound(md5AndExt, item.dbObj.name, whenDone);
} else {
io.fetchImage(md5AndExt, item.dbObj.name, 0, whenDone);
}
}
}
}
// -----------------------------
// Thumbnail loading
//------------------------------
protected function startLoadingThumbnails():void {
function loadSomeThumbnails():void {
var count:int = 10 - inProgress;
while ((next < allItems.length) && (count-- > 0)) {
inProgress++;
allItems[next++].loadThumbnail(loadDone);
}
if ((next < allItems.length) || inProgress) setTimeout(loadSomeThumbnails, 40);
}
function loadDone():void { inProgress-- }
var next:int = 0;
var inProgress:int = 0;
loadSomeThumbnails();
}
private function stopLoadingThumbnails():void {
for (var i:int = 0; i < resultsPane.numChildren; i++) {
var item:MediaLibraryItem = resultsPane.getChildAt(i) as MediaLibraryItem;
if (item) item.stopLoading();
}
}
// -----------------------------
// Import from disk
//------------------------------
private function importImagesOrSpritesFromDisk():void {
function fileSelected(e:Event):void {
for (var j:int = 0; j < files.fileList.length; j++) {
var file:FileReference = FileReference(files.fileList[j]);
file.addEventListener(Event.COMPLETE, fileLoaded);
file.load();
}
}
function fileLoaded(e:Event):void {
var fRef:FileReference = e.target as FileReference;
if (fRef) convertAndUploadImageOrSprite(fRef.name, fRef.data)
}
var costumeOrSprite:*;
var files:FileReferenceList = new FileReferenceList();
files.addEventListener(Event.SELECT, fileSelected);
try {
// Ignore the exception that happens when you call browse() with the file browser open
files.browse();
} catch(e:*) {}
}
protected function uploadCostume(costume:ScratchCostume, whenDone:Function):void {
whenDone();
}
protected function uploadSprite(sprite:ScratchSprite, whenDone:Function):void {
whenDone();
}
private function convertAndUploadImageOrSprite(fName:String, data:ByteArray):void {
function imageDecoded(e:Event):void {
var bm:BitmapData = ScratchCostume.scaleForScratch(e.target.content.bitmapData);
costumeOrSprite = new ScratchCostume(fName, bm);
uploadCostume(costumeOrSprite, uploadComplete);
}
function spriteDecoded(s:ScratchSprite):void {
costumeOrSprite = s;
uploadSprite(s, uploadComplete);
}
function imagesDecoded():void {
sprite.updateScriptsAfterTranslation();
spriteDecoded(sprite);
}
function uploadComplete():void {
app.removeLoadProgressBox();
whenDone(costumeOrSprite);
}
function decodeError():void {
DialogBox.notify('Error decoding image', 'Sorry, Scratch was unable to load the image '+fName+'.', Scratch.app.stage);
}
function spriteError(reason:String = null):void {
var msg:String = 'Sorry, Scratch was unable to load the sprite '+fName+'.';
if(reason && reason.length > 0) {
msg += ' [' + reason + ']';
}
DialogBox.notify('Error decoding sprite', msg, Scratch.app.stage);
}
var costumeOrSprite:*;
var fExt:String = '';
var i:int = fName.lastIndexOf('.');
if (i > 0) {
fExt = fName.slice(i).toLowerCase();
fName = fName.slice(0, i);
}
if ((fExt == '.png') || (fExt == '.jpg') || (fExt == '.jpeg')) {
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageDecoded);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function(e:Event):void { decodeError(); });
loader.loadBytes(data);
} else if (fExt == '.gif') {
try {
importGIF(fName, data);
} catch(e:*) {
decodeError();
}
} else if (ScratchCostume.isSVGData(data)) {
data = svgAddGroupIfNeeded(data); // wrap group around imported elements
costumeOrSprite = new ScratchCostume(fName, null);
costumeOrSprite.setSVGData(data, true);
uploadCostume(costumeOrSprite as ScratchCostume, uploadComplete);
} else {
data.position = 0;
if (data.readUTFBytes(4) != 'ObjS') {
data.position = 0;
new ProjectIO(app).decodeSpriteFromZipFile(data, spriteDecoded, spriteError);
} else {
var info:Object;
var objTable:Array;
data.position = 0;
var reader:ObjReader = new ObjReader(data);
try { info = reader.readInfo() } catch (e:Error) { data.position = 0 }
try { objTable = reader.readObjTable() } catch (e:Error) { }
if (!objTable) {
spriteError();
return;
}
var newProject:ScratchStage = new OldProjectReader().extractProject(objTable);
var sprite:ScratchSprite = newProject.numChildren > 3 ? newProject.getChildAt(3) as ScratchSprite : null;
if (!sprite) {
spriteError();
return;
}
new ProjectIO(app).decodeAllImages(newProject.allObjects(), imagesDecoded, spriteError);
}
}
}
private function importGIF(fName:String, data:ByteArray):void {
var gifReader:GIFDecoder = new GIFDecoder();
gifReader.read(data);
if (gifReader.frames.length == 0) return; // bad GIF (error; no images)
var newCostumes:Array = [];
for (var i:int = 0; i < gifReader.frames.length; ++i) {
newCostumes.push(new ScratchCostume(fName + '-' + i, gifReader.frames[i]));
}
gifImported(newCostumes);
}
protected function gifImported(newCostumes:Array):void {
whenDone(newCostumes);
}
private function svgAddGroupIfNeeded(svgData:ByteArray):ByteArray {
var xml:XML = XML(svgData);
if (!svgNeedsGroup(xml)) return svgData;
var groupNode:XML = new XML('<g></g>');
for each (var el:XML in xml.elements()) {
if (el.localName() != 'defs') {
delete xml.children()[el.childIndex()];
groupNode.appendChild(el); // move all non-def elements into group
}
}
xml.appendChild(groupNode);
// fix for an apparent bug in Flash XML parser (changes 'xml' namespace to 'aaa')
for each (var k:* in xml.attributes()) {
if (k.localName() == 'space') delete xml.@[k.name()];
}
xml.@['xml:space'] = 'preserve';
var newSVG:XML = xml;
var data: ByteArray = new ByteArray();
data.writeUTFBytes(newSVG.toXMLString());
return data;
}
private function svgNeedsGroup(xml:XML):Boolean {
// Return true if the given SVG contains more than one non-defs element.
var nonDefsCount:int;
for each (var el:XML in xml.elements()) {
if (el.localName() != 'defs') nonDefsCount++;
}
return nonDefsCount > 1;
}
private function importSoundsFromDisk():void {
function fileSelected(e:Event):void {
for (var j:int = 0; j < files.fileList.length; j++) {
var file:FileReference = FileReference(files.fileList[j]);
file.addEventListener(Event.COMPLETE, fileLoaded);
file.load();
}
}
function fileLoaded(e:Event):void {
convertAndUploadSound(FileReference(e.target).name, FileReference(e.target).data);
}
var files:FileReferenceList = new FileReferenceList();
files.addEventListener(Event.SELECT, fileSelected);
try {
// Ignore the exception that happens when you call browse() with the file browser open
files.browse();
} catch(e:*) {}
}
protected function startSoundUpload(sndToUpload:ScratchSound, origName:String, whenDone:Function):void {
if(!sndToUpload) {
DialogBox.notify(
'Sorry!',
'The sound file '+origName+' is not recognized by Scratch. Please use MP3 or WAV sound files.',
stage);
return;
}
whenDone();
}
private function convertAndUploadSound(sndName:String, data:ByteArray):void {
function uploadComplete():void {
app.removeLoadProgressBox();
whenDone(snd);
}
var snd:ScratchSound;
var origName:String = sndName;
var i:int = sndName.lastIndexOf('.');
if (i > 0) sndName = sndName.slice(0, i); // remove extension
app.addLoadProgressBox('Importing sound...');
try {
snd = new ScratchSound(sndName, data); // try reading the data as a WAV file
} catch (e:Error) { }
if (snd && (snd.sampleCount > 0)) { // WAV data
startSoundUpload(snd, origName, uploadComplete);
} else { // try to read data as an MP3 file
if (app.lp) app.lp.setTitle('Converting mp3...');
var sound:Sound;
SCRATCH::allow3d {
sound = new Sound();
data.position = 0;
try {
sound.loadCompressedDataFromByteArray(data, data.length);
MP3Loader.extractSamples(origName, sound, sound.length * 44.1, function (out:ScratchSound):void {
snd = out;
startSoundUpload(out, origName, uploadComplete);
});
}
catch(e:Error) {
uploadComplete();
}
}
if (!sound)
setTimeout(function():void {
MP3Loader.convertToScratchSound(sndName, data, function(s:ScratchSound):void {
snd = s;
startSoundUpload(s, origName, uploadComplete);
});
}, 1);
}
}
}}
| 32.159122
| 161
| 0.684525
|
4afc610c72c4295823db2ed498bad922d6f88a42
| 1,667
|
as
|
ActionScript
|
bin/Data/Scripts/Tools/lighter.as
|
ArnisLielturks/GameOff2017-WildDimension
|
16d5cd0a0a7c8c520bee974f008ba719e37c996f
|
[
"MIT"
] | null | null | null |
bin/Data/Scripts/Tools/lighter.as
|
ArnisLielturks/GameOff2017-WildDimension
|
16d5cd0a0a7c8c520bee974f008ba719e37c996f
|
[
"MIT"
] | null | null | null |
bin/Data/Scripts/Tools/lighter.as
|
ArnisLielturks/GameOff2017-WildDimension
|
16d5cd0a0a7c8c520bee974f008ba719e37c996f
|
[
"MIT"
] | null | null | null |
namespace Lighter {
Node@ node;
bool enabled = false;
ParticleEmitter@ particleEmitter;
void Create()
{
if (node !is null) {
return;
}
node = ActiveTool::toolNode.CreateChild("Lighter");
node.AddTag("Lighter");
node.SetScale(0.5f);
Node@ firstRock = node.CreateChild("Rock1");
firstRock.position = Vector3(-0.1, 0, 0);
StaticModel@ object1 = firstRock.CreateComponent("StaticModel");
object1.model = cache.GetResource("Model", "Models/Models/Small_rock1.mdl");
object1.castShadows = true;
object1.materials[0] = cache.GetResource("Material", "Materials/StoneFps.xml");
Node@ secondRock = node.CreateChild("Rock2");
secondRock.position = Vector3(0.1, 0, 0);
StaticModel@ object2 = secondRock.CreateComponent("StaticModel");
object2.model = cache.GetResource("Model", "Models/Models/Small_rock2.mdl");
object2.castShadows = true;
object2.materials[0] = cache.GetResource("Material", "Materials/StoneFps.xml");
node.SetDeepEnabled(false);
//ActiveTool::tools.Push(node);
particleEmitter = node.CreateComponent("ParticleEmitter");
particleEmitter.effect = cache.GetResource("ParticleEffect", "Particle/Burst.xml");
particleEmitter.emitting = false;
particleEmitter.viewMask = VIEW_MASK_STATIC_OBJECT;
ActiveTool::AddTool(node, ActiveTool::TOOL_LIGHTER);
}
void StartAnimation()
{
particleEmitter.ResetEmissionTimer();
particleEmitter.emitting = true;
GameSounds::Play(GameSounds::STONE_HIT, 1.0);
}
}
| 36.23913
| 91
| 0.646071
|
08373f89ca3b7ab429d2871d069c05f0dde62f79
| 3,116
|
as
|
ActionScript
|
src/away3d/materials/methods/AlphaFogMethod.as
|
TomByrne/away3d-core-fp11
|
37e0045270a2899210a895259c25b7c97a8c655d
|
[
"Apache-2.0"
] | 1
|
2021-07-11T02:45:23.000Z
|
2021-07-11T02:45:23.000Z
|
src/away3d/materials/methods/AlphaFogMethod.as
|
TomByrne/away3d-core-fp11
|
37e0045270a2899210a895259c25b7c97a8c655d
|
[
"Apache-2.0"
] | null | null | null |
src/away3d/materials/methods/AlphaFogMethod.as
|
TomByrne/away3d-core-fp11
|
37e0045270a2899210a895259c25b7c97a8c655d
|
[
"Apache-2.0"
] | null | null | null |
package away3d.materials.methods
{
import away3d.arcane;
import away3d.core.managers.Stage3DProxy;
import away3d.debug.Debug;
import away3d.materials.compilation.ShaderRegisterCache;
import away3d.materials.compilation.ShaderRegisterElement;
use namespace arcane;
/**
* FogMethod provides a method to add distance-based fog to a material.
*/
public class AlphaFogMethod extends EffectMethodBase
{
private var _minDistance:Number = 0;
private var _maxDistance:Number = 1000;
private var _fogA:Number = 0;
/**
* Creates a new FogMethod object.
* @param minDistance The distance from which the fog starts appearing.
* @param maxDistance The distance at which the fog is densest.
* @param fogColor The colour of the fog.
*/
public function AlphaFogMethod(minDistance:Number, maxDistance:Number)
{
super();
this.minDistance = minDistance;
this.maxDistance = maxDistance;
}
/**
* @inheritDoc
*/
override arcane function initVO(vo:MethodVO):void
{
vo.needsProjection = true;
}
/**
* @inheritDoc
*/
override arcane function initConstants(vo:MethodVO):void
{
var data:Vector.<Number> = vo.fragmentData;
var index:int = vo.fragmentConstantsIndex;
data[index + 3] = 1;
data[index + 6] = 0;
data[index + 7] = 0;
}
/**
* The distance from which the fog starts appearing.
*/
public function get minDistance():Number
{
return _minDistance;
}
public function set minDistance(value:Number):void
{
_minDistance = value;
}
/**
* The distance at which the fog is densest.
*/
public function get maxDistance():Number
{
return _maxDistance;
}
public function set maxDistance(value:Number):void
{
_maxDistance = value;
}
/**
* @inheritDoc
*/
arcane override function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):void
{
var data:Vector.<Number> = vo.fragmentData;
var index:int = vo.fragmentConstantsIndex;
data[index] = -1;
data[index + 4] = _minDistance;
data[index + 5] = 1/(_maxDistance - _minDistance);
}
/**
* @inheritDoc
*/
arcane override function getFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
{
var fogColor:ShaderRegisterElement = regCache.getFreeFragmentConstant();
var fogData:ShaderRegisterElement = regCache.getFreeFragmentConstant();
var temp:ShaderRegisterElement = regCache.getFreeFragmentVectorTemp();
regCache.addFragmentTempUsages(temp, 1);
var temp2:ShaderRegisterElement = regCache.getFreeFragmentVectorTemp();
var code:String = "";
vo.fragmentConstantsIndex = fogColor.index*4;
code += "sub " + temp2 + ".w, " + _sharedRegisters.projectionFragment + ".z, " + fogData + ".x \n" +
"mul " + temp2 + ".w, " + temp2 + ".w, " + fogData + ".y \n" +
"sat " + temp2 + ".w, " + temp2 + ".w \n" +
'mov ft4.x, ft3.x \n' +
"mul ft3.x, ft3.x, ft1.w \n" +
"mul ft3.x, ft3.x, fc7.x \n" +
"add ft3.x, ft3.x, ft4.x \n";
regCache.removeFragmentTempUsage(temp);
return code;
}
}
}
| 26.40678
| 125
| 0.672015
|
b2fda326b9837af64964d0768a516987bbb84141
| 1,273
|
as
|
ActionScript
|
liboz/ozsnap.as
|
arpruss/ozdev
|
3df905b701b93ef52528c30f97d99a002e49c3b3
|
[
"Unlicense",
"MIT"
] | 6
|
2015-12-29T22:08:27.000Z
|
2021-12-30T08:20:37.000Z
|
liboz/ozsnap.as
|
arpruss/ozdev
|
3df905b701b93ef52528c30f97d99a002e49c3b3
|
[
"Unlicense",
"MIT"
] | 1
|
2018-02-12T17:01:47.000Z
|
2018-02-12T22:06:37.000Z
|
liboz/ozsnap.as
|
arpruss/ozdev
|
3df905b701b93ef52528c30f97d99a002e49c3b3
|
[
"Unlicense",
"MIT"
] | 1
|
2020-04-07T15:41:55.000Z
|
2020-04-07T15:41:55.000Z
|
psect lowpage
global __ozactivepage,_ozsnap
_ozsnap: in a,(43h)
push af
ld a,80h
out (43h),a
in a,(40h)
push af
in a,(41h)
push af
ld a,4
out (40h),a
xor a
out (41h),a
ld a,3
out (43h),a
in a,(03h)
ld c,a
in a,(04h)
ld b,a
push bc
ld bc,(__ozactivepage)
ld a,c
out (03h),a
ld a,b
out (04h),a
xor a
yloop: push af
call hexout
ld d,0
ld e,a
uartwait3: in a,(45h)
bit 5,a
jr z,uartwait3
ld a,':'
out (40h),a
ld hl,500h
add hl,de
add hl,hl
add hl,hl
add hl,hl
add hl,hl
cp a
sbc hl,de
add hl,hl
ld b,30
xloop: ld a,(hl)
call hexout
inc hl
djnz xloop
uartwait4: in a,(45h)
bit 5,a
jr z,uartwait4
ld a,13
out (40h),a
uartwait5: in a,(45h)
bit 5,a
jr z,uartwait5
ld a,10
out (40h),a
pop af
inc a
cp 80
jp nz,yloop
pop bc
ld a,c
out (03h),a
ld a,b
out (04h),a
ld a,80h
out (43h),a
pop af
out (41h),a
pop af
out (40h),a
pop af
out (43h),a
ret
hexout: push af
push bc
ld b,a
uartwait1: in a,(45h)
bit 5,a
jr z,uartwait1
ld a,b
srl a
srl a
srl a
srl a
cp 10
jr c,numeric1
add a,7
numeric1: add a,30h
out (40h),a
uartwait2: in a,(45h)
bit 5,a
jr z,uartwait2
ld a,b
and 0Fh
cp 10
jr c,numeric2
add a,7
numeric2: add a,30h
out (40h),a
pop bc
pop af
ret
| 10.520661
| 30
| 0.60487
|
0be1f938c3b846292b321dc61f671202ad665995
| 359
|
as
|
ActionScript
|
srclib/awayphysics/data/AWPCollisionObjectTypes.as
|
caroach1080/Citrus-Engine
|
9df5cfecf1d3ee3c9101f6ff4254d3f3d11c1af1
|
[
"MIT"
] | 5
|
2016-04-23T07:14:53.000Z
|
2021-01-13T21:55:48.000Z
|
srclib/awayphysics/data/AWPCollisionObjectTypes.as
|
JamesLinus/Citrus-Engine
|
646bbb9ecfc2147dfa72e161bce92a61c9a2b405
|
[
"MIT"
] | null | null | null |
srclib/awayphysics/data/AWPCollisionObjectTypes.as
|
JamesLinus/Citrus-Engine
|
646bbb9ecfc2147dfa72e161bce92a61c9a2b405
|
[
"MIT"
] | 7
|
2016-04-27T07:16:59.000Z
|
2021-09-24T10:47:43.000Z
|
package awayphysics.data {
public class AWPCollisionObjectTypes {
public static const CO_COLLISION_OBJECT : int = 1;
public static const CO_RIGID_BODY : int = 2;
public static const CO_GHOST_OBJECT : int = 4;
public static const CO_SOFT_BODY : int = 8;
public static const CO_HF_FLUID : int = 16;
public static const CO_USER_TYPE : int = 32;
}
}
| 35.9
| 52
| 0.740947
|
9a4359c93280c6554473a713d6b3649cc294ad03
| 4,232
|
as
|
ActionScript
|
src/net/manaca/application/thread/SimpleBatch.as
|
wersling/manaca
|
784f0220369371d403c32446103b0715f3cb863c
|
[
"MIT"
] | 2
|
2016-02-23T07:22:45.000Z
|
2021-05-31T12:42:46.000Z
|
src/net/manaca/application/thread/SimpleBatch.as
|
wersling/manaca
|
784f0220369371d403c32446103b0715f3cb863c
|
[
"MIT"
] | null | null | null |
src/net/manaca/application/thread/SimpleBatch.as
|
wersling/manaca
|
784f0220369371d403c32446103b0715f3cb863c
|
[
"MIT"
] | 2
|
2015-05-13T06:52:16.000Z
|
2016-07-27T14:43:56.000Z
|
package net.manaca.application.thread
{
/**
* SimpleBatch is a simple implementation of the IBatch interface.
*
* <p>This batch executes its child-processes after each other. This means that the
* first child-process will be executed at the beginning, the second after the first
* finished execution and so on.</p>
*
* <p>You can seamlessly add batch processes as child-processes to this batch. If the
* added child-batch acts like a simple process (as does <code>BatchProcess</code>) this
* batch will treat the child-batch like a simple process. If the added child-batch
* acts like a real batch (as does this batch) it is treated as if it were not there,
* this means as if the child-processes of the child-batch were directly added to this
* batch.</p>
*
* <p>If you want multiple processes to be treated as one process, use the
* <code>BatchProcess</code>. If you want to group multiple processes, but still want them
* to be independent and you want to be notified when the next process is executed use
* this batch. If you simply do not care use this batch: it is more convenient to use
* because of the properly typed batch events.</p>
*
*/
public class SimpleBatch extends AbstractBatch
{
//==========================================================================
// Constructor
//==========================================================================
/**
* Constructs a new SimpleBatch instance.
*/
public function SimpleBatch()
{
super();
}
//==========================================================================
// Event handlers
//==========================================================================
/**
* Distributes batch and process finish events.
*
*/
override protected function dispatchFinishEvent():void
{
super.dispatchFinishEvent();
this.dispatchEvent(
new BatchEvent(BatchEvent.BATCH_FINISH, false, false));
}
/**
* Distributes batch and process start events.
*
*/
override protected function dispatchStartEvent():void
{
super.dispatchStartEvent();
this.dispatchEvent(
new BatchEvent(BatchEvent.BATCH_START, false, false));
}
/**
* Distributes batch and process update events.
*
*/
override protected function dispatchUpdateEvent():void
{
super.dispatchUpdateEvent();
var batchEvent:BatchEvent =
new BatchEvent(BatchEvent.BATCH_UPDATE, false, false);
batchEvent.percentage = this.percentage;
this.dispatchEvent(batchEvent);
}
/**
* Distributes batch and process Resume events.
*
*/
override protected function dispatchResumeEvent():void
{
this.dispatchUpdateEvent();
}
/**
* Distributes batch and process pause events.
*
*/
override protected function dispatchPauseEvent():void
{
this.dispatchUpdateEvent();
}
/**
* Distributes batch and process error events.
*
*/
override protected function dispatchErrorEvent(error:*):void
{
super.dispatchErrorEvent(error);
if(this.willTrigger(BatchEvent.BATCH_ERROR))
{
var batchEvent:BatchEvent =
new BatchEvent(BatchEvent.BATCH_ERROR, false, false);
batchEvent.error = error;
this.dispatchEvent(batchEvent);
}
else
{
throw new Error("Unhandled BatchEvent:" + error.toString(), 2044);
}
}
/**
* Distributes a next-process event.
*
* <p>Note that this implementation is empty. But you may override it in
* subclasses to distribute a next-process event.</p>
*/
override protected function distributeNextProcessEvent():void
{
if (currentProcessIndex > 0 || getParentProcess() == null)
{
this.dispatchEvent(new BatchEvent(
BatchEvent.BATCH_NEXT_PROCESS, false, false));
}
}
}
}
| 32.305344
| 91
| 0.568526
|
1597ba9b099a8178dacb6a13b0d3e6f5308e2540
| 1,034
|
as
|
ActionScript
|
ApplicationExplorer/src/main/actionscript/sk/yoz/ycanvas/demo/explorer/modes/arcgis/ArcGisPartition.as
|
marcusbrose/YCanvas
|
149a2e88160168b220f313192bc441d047276710
|
[
"MIT"
] | 39
|
2015-01-21T11:20:53.000Z
|
2021-09-10T17:59:58.000Z
|
ApplicationExplorer/src/main/actionscript/sk/yoz/ycanvas/demo/explorer/modes/arcgis/ArcGisPartition.as
|
rozdonmobile/YCanvas
|
6aada50d8c4c7d6f9739de6de81194379569b383
|
[
"MIT"
] | 5
|
2015-07-17T17:43:27.000Z
|
2019-04-30T17:19:59.000Z
|
ApplicationExplorer/src/main/actionscript/sk/yoz/ycanvas/demo/explorer/modes/arcgis/ArcGisPartition.as
|
rozdonmobile/YCanvas
|
6aada50d8c4c7d6f9739de6de81194379569b383
|
[
"MIT"
] | 19
|
2015-01-21T13:18:24.000Z
|
2021-09-10T17:59:59.000Z
|
package sk.yoz.ycanvas.demo.explorer.modes.arcgis
{
import flash.events.IEventDispatcher;
import sk.yoz.ycanvas.demo.explorer.Utils;
import sk.yoz.ycanvas.demo.explorer.modes.Layer;
import sk.yoz.ycanvas.demo.explorer.modes.Partition;
public class ArcGisPartition extends Partition
{
public function ArcGisPartition(layer:Layer, x:int, y:int,
requestedWidth:uint, requestedHeight:uint, dispatcher:IEventDispatcher)
{
super(layer, x, y, requestedWidth, requestedHeight, dispatcher);
}
override protected function get url():String
{
var level:uint = 18 - Utils.getPow(layer.level);
var x:int = this.x / expectedWidth / layer.level;
var y:int = this.y / expectedHeight / layer.level;
var result:String = "http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/"
+ level + "/" + y + "/" + x;
return result;
}
}
}
| 38.296296
| 119
| 0.624758
|
296d23108f2f69fe5a43eebcc63ae08d309f56b6
| 11,311
|
as
|
ActionScript
|
aib/as/src/org/aib/InspectorController.as
|
shyndman/ActionStep
|
452d86d597ac4e2e9d86f25dfbadbfcd73e6e5eb
|
[
"BSD-3-Clause"
] | 2
|
2015-07-07T23:46:25.000Z
|
2021-05-22T07:14:19.000Z
|
aib/as/src/org/aib/InspectorController.as
|
shyndman/ActionStep
|
452d86d597ac4e2e9d86f25dfbadbfcd73e6e5eb
|
[
"BSD-3-Clause"
] | null | null | null |
aib/as/src/org/aib/InspectorController.as
|
shyndman/ActionStep
|
452d86d597ac4e2e9d86f25dfbadbfcd73e6e5eb
|
[
"BSD-3-Clause"
] | 1
|
2021-05-22T07:14:25.000Z
|
2021-05-22T07:14:25.000Z
|
/* See LICENSE for copyright and terms of use */
import org.actionstep.ASColoredView;
import org.actionstep.ASColors;
import org.actionstep.ASDebugger;
import org.actionstep.ASStringFormatter;
import org.actionstep.ASUtils;
import org.actionstep.NSArray;
import org.actionstep.NSColor;
import org.actionstep.NSComboBox;
import org.actionstep.NSNotification;
import org.actionstep.NSNotificationCenter;
import org.actionstep.NSPoint;
import org.actionstep.NSRect;
import org.actionstep.NSSize;
import org.actionstep.NSView;
import org.actionstep.NSWindow;
import org.aib.AIBApplication;
import org.aib.AIBObject;
import org.aib.EditableObjectProtocol;
import org.aib.inspector.InspectorProtocol;
import org.aib.inspector.MessageContentView;
import org.aib.SelectionManager;
import org.aib.ui.ToolWindow;
/**
* The inspector controller.
*
* @author Scott Hyndman
*/
class org.aib.InspectorController extends AIBObject {
//******************************************************
//* Constants
//******************************************************
private static var DEFAULT_WIDTH:Number = 320;
private static var DEFAULT_HEIGHT:Number = 470;
private static var CONTENT_WIDTH:Number = 300;
//******************************************************
//* Class variables
//******************************************************
private static var g_instance:InspectorController;
//******************************************************
//* Member variables
//******************************************************
private var m_window:NSWindow;
private var m_typeSelector:NSComboBox;
private var m_inspectors:NSArray;
private var m_inspectorContentView:NSView;
private var m_curInspector:InspectorProtocol;
private var m_curContents:NSView;
private var m_messageContent:MessageContentView;
private var m_showingMessage:Boolean;
//******************************************************
//* Construction
//******************************************************
/**
* Creates a new instance of the <code>Inspector</code> class.
*
* The class is a singleton. Access the window using {@link #instance()}.
*/
private function InspectorController() {
m_inspectors = NSArray.array();
m_showingMessage = false;
}
/**
* Initializes the inspector.
*/
public function init():InspectorController {
super.init();
createWindow();
createContentView();
var wndFrm:NSRect = m_window.frame();
m_window.setFrame(NSRect.withOriginSize(wndFrm.origin,
new NSSize(DEFAULT_WIDTH, DEFAULT_HEIGHT)));
//
// Observe selection changes
//
NSNotificationCenter.defaultCenter().addObserverSelectorNameObject(
this,
"selectionDidChange",
SelectionManager.SelectionDidChangeNotification,
SelectionManager.instance());
return this;
}
/**
* Creates the window for the inspector.
*/
private function createWindow():Void {
m_window = (new ToolWindow()).initWithContentRectStyleMask(
new NSRect(300, 60, CONTENT_WIDTH, DEFAULT_HEIGHT),
NSWindow.NSClosableWindowMask
| NSWindow.NSMiniaturizableWindowMask
| NSWindow.NSResizableWindowMask
| NSWindow.NSTitledWindowMask);
m_window.rootView().setHasShadow(true);
m_window.setMinSize(new NSSize(CONTENT_WIDTH, DEFAULT_HEIGHT));
m_window.setTitle(AIBApplication.stringForKeyPath(
"Inspectors.BasicWindowTitle"));
m_window.display();
m_window.setBackgroundColor(ASColors.lightGrayColor().adjustColorBrightnessByFactor(1.5));
}
/**
* Creates the content view for the inspector window.
*/
private function createContentView():Void {
var stg:NSView = m_window.contentView();
var stgFrm:NSRect = stg.frame();
var stgSz:NSSize = m_window.contentSize();
var typeHolderHeight:Number = 36;
//
// Create holder
//
var typeHolder:ASColoredView = new ASColoredView();
typeHolder.initWithFrame(new NSRect(-2,0,stgSz.width+4,typeHolderHeight));
typeHolder.setAutoresizingMask(NSView.WidthSizable);
typeHolder.setBackgroundColor(null);
typeHolder.setBorderColor(ASColors.blackColor());
stg.addSubview(typeHolder);
//
// Create combobox
//
var frm:NSRect = typeHolder.frame();
m_typeSelector = new NSComboBox();
m_typeSelector.initWithFrame(new NSRect(
(frm.size.width - 200) / 2, 8, 200, 22));
m_typeSelector.setEditable(false);
m_typeSelector.setTarget(this);
m_typeSelector.setAction("typeDidChange");
m_typeSelector.setAutoresizingMask(NSView.MinXMargin | NSView.MaxXMargin);
typeHolder.addSubview(m_typeSelector);
//
// Create content view
//
m_inspectorContentView = new NSView();
m_inspectorContentView.initWithFrame(new NSRect(
(stgSz.width - CONTENT_WIDTH) / 2 - 4, typeHolderHeight + 8,
CONTENT_WIDTH, stgSz.height - typeHolderHeight - 8));
m_inspectorContentView.setAutoresizingMask(
NSView.MinXMargin | NSView.MaxXMargin);
stg.addSubview(m_inspectorContentView);
//
// Create message content
//
m_messageContent = (new MessageContentView()).initWithFrame(
NSRect.withOriginSize(NSPoint.ZeroPoint,
m_inspectorContentView.frame().size));
m_messageContent.setAutoresizingMask(
NSView.MinXMargin | NSView.MaxXMargin);
}
//******************************************************
//* Getting the content area
//******************************************************
/**
* Returns the content size of the
*/
public function contentSize():NSSize {
return m_inspectorContentView.frame().size;
}
//******************************************************
//* Setting the inspectors
//******************************************************
/**
* Creates inspectors for this window using the class names found in
* <code>types</code>.
*/
public function createInspectorsWithTypes(types:NSArray):Void {
var arr:Array = types.internalList();
var len:Number = arr.length;
//
// Create the inspectors
//
for (var i:Number = 0; i < len; i++) {
var cls:Function = eval(arr[i].type);
var insp:InspectorProtocol = InspectorProtocol(
ASUtils.createInstanceOf(cls));
if (arr[i].src != null) {
insp.setSourceDirectory(AIBApplication.AIB_URL
+ AIBApplication.RESOURCES_PATH + arr[i].src);
}
//
// Make sure the palette was created.
//
if (insp == null) {
trace("The inspector named " + arr[i] + " could not be created.",
ASDebugger.WARNING);
continue;
}
//
// Initialize and add the palette
//
insp.initWithInspectorController(this);
m_inspectors.addObject(insp);
//
// Add the item to the combobox.
//
m_typeSelector.addItemWithObjectValue(insp.inspectorName());
}
m_typeSelector.selectItemAtIndex(0);
m_curInspector = InspectorProtocol(m_inspectors.objectAtIndex(0));
}
//******************************************************
//* Setting the content view
//******************************************************
private function setCurrentContents(contents:NSView):Void {
if (contents == m_curContents) {
return;
}
if (m_curContents != null) {
if (contents == null) {
m_curContents.removeFromSuperview();
}
else if (contents == m_messageContent && m_showingMessage) {
return;
} else {
m_inspectorContentView.replaceSubviewWith(m_curContents,
contents);
}
} else {
m_inspectorContentView.addSubview(contents);
}
m_showingMessage = m_curContents == m_messageContent;
m_curContents = contents;
if (!m_curContents != null) {
var frmSz:NSSize = m_inspectorContentView.frame().size;
var cntFrm:NSRect = m_curContents.frame();
cntFrm.origin.x = (frmSz.width - cntFrm.size.width) / 2;
m_curContents.setFrameOrigin(cntFrm.origin);
}
}
private function setMessageContent(message:String):Void {
m_messageContent.setMessage(message);
setCurrentContents(m_messageContent);
m_messageContent.setNeedsDisplay(true);
}
//******************************************************
//* Window properties
//******************************************************
/**
* Resets this window's title.
*/
private function resetTitle():Void {
//
// Get the selection
//
var sel:NSArray = SelectionManager.instance().currentSelection();
//
// Build and set the title
//
var title:String;
if (sel.count() == 1) {
var format:String = AIBApplication.stringForKeyPath(
"Inspectors.WindowTitle");
var cls:String = sel.objectAtIndex(0).className();
var parts:Array = cls.split(".");
cls = parts[parts.length - 1];
title = ASStringFormatter.formatString(format,
NSArray.arrayWithObject(cls));
} else {
title = AIBApplication.stringForKeyPath(
"Inspectors.BasicWindowTitle");
}
m_window.setTitle(title);
}
//******************************************************
//* Selection changes
//******************************************************
/**
* Fired when the selected inspector changes.
*/
private function typeDidChange(sender:Object):Void {
//
// Get the selected inspector
//
var idx:Number = m_typeSelector.indexOfSelectedItem();
m_curInspector = InspectorProtocol(
m_inspectors.objectAtIndex(idx));
//
// Trigger a selection change
//
setSelection(SelectionManager.instance().currentSelection());
}
/**
* Fired when the selection changes.
*/
private function selectionDidChange(ntf:NSNotification):Void {
resetTitle();
setSelection(SelectionManager.instance().currentSelection());
}
private function setSelection(selection:NSArray):Void {
if (selection.count() > 1) {
setMessageContent(AIBApplication.stringForKeyPath(
"Inspectors.MultiSel"));
return;
}
else if (selection.count() == 0) {
setMessageContent(AIBApplication.stringForKeyPath(
"Inspectors.NoSel"));
return;
}
//
// Invalid selection
//
var sel:EditableObjectProtocol = EditableObjectProtocol(
selection.objectAtIndex(0));
if (!sel.supportsInspector(m_curInspector)) {
setMessageContent(AIBApplication.stringForKeyPath(
"Inspectors.NotApplicable"));
return;
}
//
// Validate with inspector
//
var valid:Boolean = m_curInspector.updateInspectorWithSelection(sel);
if (!valid) {
setMessageContent(AIBApplication.stringForKeyPath(
"Inspectors.NotApplicable"));
return;
}
setCurrentContents(m_curInspector.inspectorContents());
}
//******************************************************
//* Getting the window
//******************************************************
/**
* Returns the window used by the inspector window.
*/
public function window():NSWindow {
return m_window;
}
//******************************************************
//* Getting the instance
//******************************************************
/**
* Returns the inspector window instance.
*/
public static function instance():InspectorController {
if (null == g_instance) {
g_instance = (new InspectorController()).init();
}
return g_instance;
}
}
| 28.854592
| 92
| 0.620723
|
a3a415781e12983aa470d16644191ed7bd43c9d1
| 236
|
as
|
ActionScript
|
swf/SymbolBackgroundLowDungeon1_2.as
|
lukastechhonda/BigBangEmpireBot
|
5d5666c9d06111dc079f61b6038e2338d21fc8a7
|
[
"MIT"
] | 1
|
2019-10-31T13:49:58.000Z
|
2019-10-31T13:49:58.000Z
|
swf/SymbolBackgroundLowDungeon1_2.as
|
lukastechhonda/BigBangEmpireBot
|
5d5666c9d06111dc079f61b6038e2338d21fc8a7
|
[
"MIT"
] | 11
|
2018-09-30T15:17:00.000Z
|
2022-02-13T11:52:26.000Z
|
swf/SymbolBackgroundLowDungeon1_2.as
|
Zweer/BigBangEmpireBot
|
d0fd04118822bf0eb6fffd271ce944f0475c5998
|
[
"MIT"
] | 6
|
2018-06-18T18:43:46.000Z
|
2021-03-03T21:48:43.000Z
|
package
{
import flash.display.MovieClip;
public dynamic class SymbolBackgroundLowDungeon1_2 extends MovieClip
{
public function SymbolBackgroundLowDungeon1_2()
{
super();
}
}
}
| 15.733333
| 71
| 0.614407
|
8f64b7149a4e15f5159b54834bf5d9a116efeeff
| 693
|
as
|
ActionScript
|
src/extensions/RobotEvent.as
|
bLandais/txRobotic
|
bfe4a0ef0fdb9745e222ab0f5c61223cb3543e03
|
[
"CC0-1.0"
] | 2
|
2018-04-04T18:59:50.000Z
|
2021-06-13T01:07:38.000Z
|
src/extensions/RobotEvent.as
|
bLandais/txRobotic
|
bfe4a0ef0fdb9745e222ab0f5c61223cb3543e03
|
[
"CC0-1.0"
] | 9
|
2017-03-22T17:26:25.000Z
|
2017-06-25T13:35:34.000Z
|
src/extensions/RobotEvent.as
|
bLandais/txRobotic
|
bfe4a0ef0fdb9745e222ab0f5c61223cb3543e03
|
[
"CC0-1.0"
] | 3
|
2017-03-22T15:09:12.000Z
|
2018-04-04T18:59:51.000Z
|
package extensions
{
import flash.events.Event;
public class RobotEvent extends Event
{
public static const SERIAL_PRINT:String = "SERIAL_PRINT";
public static const COMPILE_OUTPUT:String = "COMPILE_OUTPUT";
public static const HEX_DOWNLOAD:String = "HEX_DOWNLOAD";
public static const HEX_SAVED:String = "HEX_SAVED";
public static const CCODE_GOT:String = "CCODE_GOT";
public var msg:Object;
public function RobotEvent(type:String, msg:Object,bubbles:Boolean=false, cancelable:Boolean=false)
{
super(type, bubbles, cancelable);
this.msg = msg;
}
public override function clone():Event
{
return new RobotEvent(type,msg,bubbles,cancelable);
}
}
}
| 26.653846
| 101
| 0.738817
|
43f81016f7c446facc8c12590eeab235944613ea
| 1,105
|
as
|
ActionScript
|
Source Flash/scripts/ddt/view/character/CharacterLoaderFactory.as
|
itspaiva/DDTank4.1
|
99d67ca8ad15851b8a37e9dddf2f3f9018c770e4
|
[
"MIT"
] | 4
|
2021-11-13T07:22:26.000Z
|
2022-02-21T20:38:53.000Z
|
Source Flash/scripts/ddt/view/character/CharacterLoaderFactory.as
|
itspaiva/DDTank4.1
|
99d67ca8ad15851b8a37e9dddf2f3f9018c770e4
|
[
"MIT"
] | null | null | null |
Source Flash/scripts/ddt/view/character/CharacterLoaderFactory.as
|
itspaiva/DDTank4.1
|
99d67ca8ad15851b8a37e9dddf2f3f9018c770e4
|
[
"MIT"
] | 7
|
2021-11-13T07:22:31.000Z
|
2022-02-15T07:08:09.000Z
|
package ddt.view.character
{
import ddt.data.player.PlayerInfo;
public class CharacterLoaderFactory implements ICharacterLoaderFactory
{
public static const SHOW:String = "show";
public static const GAME:String = "game";
public static const ROOM:String = "room";
public static const CONSORTIA:String = "consortia";
public function CharacterLoaderFactory()
{
super();
}
public function createLoader(param1:PlayerInfo, param2:String = "show") : ICharacterLoader
{
var _loc3_:ICharacterLoader = null;
switch(param2)
{
case SHOW:
_loc3_ = new ShowCharacterLoader(param1);
break;
case GAME:
_loc3_ = new GameCharacterLoader(param1);
break;
case ROOM:
_loc3_ = new RoomCharaterLoader(param1);
}
if(_loc3_ != null)
{
_loc3_.setFactory(LayerFactory.instance);
}
return _loc3_;
}
}
}
| 25.113636
| 96
| 0.545701
|
0c516c931df324584558949cb8ed99c0811e0aea
| 6,551
|
as
|
ActionScript
|
Data/Interface/Source/F4NV/SPECIALMenu/Shared/GlobalFunc.as
|
Scrivener07/FO4_SpecialMenuEx
|
cf92ebe494dc6e3b7d1b150390615f0b1cc4a244
|
[
"MIT"
] | 1
|
2020-05-10T17:57:30.000Z
|
2020-05-10T17:57:30.000Z
|
Data/Interface/Source/F4NV/SPECIALMenu/Shared/GlobalFunc.as
|
Scrivener07/FO4_SpecialMenuEx
|
cf92ebe494dc6e3b7d1b150390615f0b1cc4a244
|
[
"MIT"
] | null | null | null |
Data/Interface/Source/F4NV/SPECIALMenu/Shared/GlobalFunc.as
|
Scrivener07/FO4_SpecialMenuEx
|
cf92ebe494dc6e3b7d1b150390615f0b1cc4a244
|
[
"MIT"
] | 1
|
2020-05-10T17:57:32.000Z
|
2020-05-10T17:57:32.000Z
|
package Shared
{
import flash.display.DisplayObject;
import flash.display.MovieClip;
import flash.events.Event;
import flash.geom.Point;
import flash.geom.Rectangle;
import flash.text.TextField;
import flash.text.TextFormat;
import scaleform.gfx.Extensions;
public class GlobalFunc
{
public static const PIPBOY_GREY_OUT_ALPHA:Number = 0.5;
public static const SELECTED_RECT_ALPHA:Number = 1;
public static const DIMMED_ALPHA:Number = 0.65;
public static const NUM_DAMAGE_TYPES:uint = 6;
protected static const CLOSE_ENOUGH_EPSILON:Number = 0.001;
private static const MAX_TRUNCATED_TEXT_LENGTH = 42;
public function GlobalFunc()
{
super();
}
public static function Lerp(param1:Number, param2:Number, param3:Number, param4:Number, param5:Number, param6:Boolean) : Number
{
var _loc7_:Number = param1 + (param5 - param3) / (param4 - param3) * (param2 - param1);
if(param6)
{
if(param1 < param2)
{
_loc7_ = Math.min(Math.max(_loc7_,param1),param2);
}
else
{
_loc7_ = Math.min(Math.max(_loc7_,param2),param1);
}
}
return _loc7_;
}
public static function RoundDecimal(param1:Number, param2:Number) : Number
{
var _loc3_:Number = Math.pow(10,param2);
return Math.round(_loc3_ * param1) / _loc3_;
}
public static function CloseToNumber(param1:Number, param2:Number) : Boolean
{
return Math.abs(param1 - param2) < CLOSE_ENOUGH_EPSILON;
}
public static function MaintainTextFormat() : *
{
TextField.prototype.SetText = function(param1:String, param2:Boolean, param3:Boolean = false):*
{
var _loc5_:Number = NaN;
var _loc6_:Boolean = false;
if(!param1 || param1 == "")
{
param1 = " ";
}
if(param3 && param1.charAt(0) != "$")
{
param1 = param1.toUpperCase();
}
var _loc4_:TextFormat = this.getTextFormat();
if(param2)
{
_loc5_ = Number(_loc4_.letterSpacing);
_loc6_ = _loc4_.kerning;
this.htmlText = param1;
_loc4_ = this.getTextFormat();
_loc4_.letterSpacing = _loc5_;
_loc4_.kerning = _loc6_;
this.setTextFormat(_loc4_);
this.htmlText = param1;
}
else
{
this.text = param1;
this.setTextFormat(_loc4_);
this.text = param1;
}
};
}
public static function SetText(param1:TextField, param2:String, param3:Boolean, param4:Boolean = false, param5:* = false) : *
{
var _loc6_:TextFormat = null;
var _loc7_:Number = NaN;
var _loc8_:Boolean = false;
if(!param2 || param2 == "")
{
param2 = " ";
}
if(param4 && param2.charAt(0) != "$")
{
param2 = param2.toUpperCase();
}
if(param3)
{
_loc6_ = param1.getTextFormat();
_loc7_ = Number(_loc6_.letterSpacing);
_loc8_ = _loc6_.kerning;
param1.htmlText = param2;
_loc6_ = param1.getTextFormat();
_loc6_.letterSpacing = _loc7_;
_loc6_.kerning = _loc8_;
param1.setTextFormat(_loc6_);
}
else
{
param1.text = param2;
}
if(param5 && param1.text.length > MAX_TRUNCATED_TEXT_LENGTH)
{
param1.text = param1.text.slice(0,MAX_TRUNCATED_TEXT_LENGTH - 3) + "...";
}
}
public static function LockToSafeRect(param1:DisplayObject, param2:String, param3:Number = 0, param4:Number = 0) : *
{
var _loc5_:Rectangle = Extensions.visibleRect;
var _loc6_:Point = new Point(_loc5_.x + param3,_loc5_.y + param4);
var _loc7_:Point = new Point(_loc5_.x + _loc5_.width - param3,_loc5_.y + _loc5_.height - param4);
var _loc8_:Point = param1.parent.globalToLocal(_loc6_);
var _loc9_:Point = param1.parent.globalToLocal(_loc7_);
var _loc10_:Point = Point.interpolate(_loc8_,_loc9_,0.5);
if(param2 == "T" || param2 == "TL" || param2 == "TR" || param2 == "TC")
{
param1.y = _loc8_.y;
}
if(param2 == "CR" || param2 == "CC" || param2 == "CL")
{
param1.y = _loc10_.y;
}
if(param2 == "B" || param2 == "BL" || param2 == "BR" || param2 == "BC")
{
param1.y = _loc9_.y;
}
if(param2 == "L" || param2 == "TL" || param2 == "BL" || param2 == "CL")
{
param1.x = _loc8_.x;
}
if(param2 == "TC" || param2 == "CC" || param2 == "BC")
{
param1.x = _loc10_.x;
}
if(param2 == "R" || param2 == "TR" || param2 == "BR" || param2 == "CR")
{
param1.x = _loc9_.x;
}
}
public static function AddMovieExploreFunctions() : *
{
MovieClip.prototype.getMovieClips = function():Array
{
var _loc2_:* = undefined;
var _loc1_:* = new Array();
for(_loc2_ in this)
{
if(this[_loc2_] is MovieClip && this[_loc2_] != this)
{
_loc1_.push(this[_loc2_]);
}
}
return _loc1_;
};
MovieClip.prototype.showMovieClips = function():*
{
var _loc1_:* = undefined;
for(_loc1_ in this)
{
if(this[_loc1_] is MovieClip && this[_loc1_] != this)
{
trace(this[_loc1_]);
this[_loc1_].showMovieClips();
}
}
};
}
public static function AddReverseFunctions() : *
{
MovieClip.prototype.PlayReverseCallback = function(param1:Event):*
{
if(param1.currentTarget.currentFrame > 1)
{
param1.currentTarget.gotoAndStop(param1.currentTarget.currentFrame - 1);
}
else
{
param1.currentTarget.removeEventListener(Event.ENTER_FRAME,param1.currentTarget.PlayReverseCallback);
}
};
MovieClip.prototype.PlayReverse = function():*
{
if(this.currentFrame > 1)
{
this.gotoAndStop(this.currentFrame - 1);
this.addEventListener(Event.ENTER_FRAME,this.PlayReverseCallback);
}
else
{
this.gotoAndStop(1);
}
};
MovieClip.prototype.PlayForward = function(param1:String):*
{
delete this.onEnterFrame;
this.gotoAndPlay(param1);
};
MovieClip.prototype.PlayForward = function(param1:Number):*
{
delete this.onEnterFrame;
this.gotoAndPlay(param1);
};
}
public static function StringTrim(param1:String) : String
{
var _loc5_:String = null;
var _loc2_:Number = 0;
var _loc3_:Number = 0;
var _loc4_:Number = param1.length;
while(param1.charAt(_loc2_) == " " || param1.charAt(_loc2_) == "\n" || param1.charAt(_loc2_) == "\r" || param1.charAt(_loc2_) == "\t")
{
_loc2_++;
}
_loc5_ = param1.substring(_loc2_);
_loc3_ = _loc5_.length - 1;
while(_loc5_.charAt(_loc3_) == " " || _loc5_.charAt(_loc3_) == "\n" || _loc5_.charAt(_loc3_) == "\r" || _loc5_.charAt(_loc3_) == "\t")
{
_loc3_--;
}
_loc5_ = _loc5_.substring(0,_loc3_ + 1);
return _loc5_;
}
}
}
| 26.099602
| 137
| 0.625401
|
77bc88f47b35087e6f3ab9d10eba1163ddb8df36
| 18,658
|
as
|
ActionScript
|
src/com/sibirjak/jakute/framework/JCSS_ComponentStyleManager.as
|
kakenbok/Jakute-Styling-Engine
|
7b5b002d7c26c38271bb1c6d21a4fe63db25bd06
|
[
"MIT"
] | 2
|
2016-02-02T09:50:59.000Z
|
2019-02-22T03:10:51.000Z
|
src/com/sibirjak/jakute/framework/JCSS_ComponentStyleManager.as
|
kakenbok/Jakute-Styling-Engine
|
7b5b002d7c26c38271bb1c6d21a4fe63db25bd06
|
[
"MIT"
] | null | null | null |
src/com/sibirjak/jakute/framework/JCSS_ComponentStyleManager.as
|
kakenbok/Jakute-Styling-Engine
|
7b5b002d7c26c38271bb1c6d21a4fe63db25bd06
|
[
"MIT"
] | null | null | null |
/*******************************************************************************
* The MIT License
*
* Copyright (c) 2011 Jens Struwe.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
******************************************************************************/
package com.sibirjak.jakute.framework {
import com.sibirjak.jakute.JCSS_Adapter;
import com.sibirjak.jakute.events.JCSS_ChangeEvent;
import com.sibirjak.jakute.framework.core.jcss_internal;
import com.sibirjak.jakute.framework.roles.JCSS_ComponentRoleManager;
import com.sibirjak.jakute.framework.states.JCSS_StateManager;
import com.sibirjak.jakute.framework.stylerules.JCSS_StyleRule;
import com.sibirjak.jakute.framework.styles.JCSS_StyleValueManager;
import com.sibirjak.jakute.framework.update.JCSS_UpdateInfo;
import com.sibirjak.jakute.framework.update.JCSS_UpdateManager;
import flash.display.DisplayObject;
import flash.display.DisplayObjectContainer;
import flash.events.Event;
use namespace jcss_internal;
/**
* @author Jens Struwe 11.01.2011
*/
public class JCSS_ComponentStyleManager extends JCSS_StyleManager {
private var _jcssAdapter : JCSS_Adapter;
private var _component : DisplayObject;
private var _cssName : String;
private var _cssID : String;
private var _cssClass : String;
private var _states : Object;
private var _encloseChildren : Boolean;
private var _virtualParent : DisplayObject;
private var _styleValueManager : JCSS_StyleValueManager;
private var _stateManager : JCSS_StateManager;
private var _depth : uint;
private var _parentComponentStyleManager : JCSS_ComponentStyleManager;
private var _initialized : Boolean;
/*
* Constructor
*/
public function JCSS_ComponentStyleManager(adapter : JCSS_Adapter) {
_jcssAdapter = adapter;
_styleValueManager = new JCSS_StyleValueManager(this);
_stateManager = new JCSS_StateManager(this);
_roleManager = new JCSS_ComponentRoleManager(this);
_updatesEnabled = false;
}
/*
* JCSS_StyleManager
*/
override public function get depth() : uint {
return _depth;
}
/*
* Public properties
*/
/**
* It is not possible to register a component instance that is already on the stage.
*
* However, when a component with a registered type is added to the stage, the
* ApplicationStyleManager is notified just before the components event handler.
*/
public function set component(component : DisplayObject) : void {
//trace ("REGISTER", this);
_component = component;
_component.addEventListener(Event.ADDED_TO_STAGE, addedToStageHandler, false, _jcss.stageEventPriority);
_jcssAdapter.registered_internal();
}
public function get component() : DisplayObject {
return _component;
}
public function get initialized() : Boolean {
return _initialized;
}
public function cleanUp() : void {
_component.removeEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);
_component.removeEventListener(Event.REMOVED_FROM_STAGE, removedFromStageHandler, false);
removeAllParentAndUpdateReferences();
}
/*
* Selector Attributes
*/
public function set cssName(cssName : String) : void {
if (_initialized) throw new Error("You cannot change the cssName after the component has been initialized.");
_cssName = cssName;
}
public function get cssName() : String {
return _cssName;
}
public function set cssID(cssID : String) : void {
if (_initialized) throw new Error("You cannot change the cssID after the component has been initialized.");
if (!cssID) cssID = null; // skip emtpy string ""
if (_cssID == cssID) return;
_cssID = cssID;
}
public function get cssID() : String {
return _cssID;
}
public function set cssClass(cssClass : String) : void {
if (!cssClass) cssClass = null; // skip emtpy string ""
if (_cssClass == cssClass) return;
if (_updatesEnabled) {
// stores all tree nodes for that an update should be performed
componentRoleManager.notifyCSSClassChangesNext();
}
_cssClass = cssClass;
if (_updatesEnabled) {
JCSS_UpdateManager.getInstance().updateAll(this);
componentRoleManager.foreachClassRelatedChildComponentStyleManager(
JCSS_UpdateManager.getInstance().updateAll
);
JCSS_UpdateManager.getInstance().commit();
}
}
public function get cssClass() : String {
return _cssClass;
}
public function setState(stateName : String, value : String) : void {
if (!_states) _states = new Object();
var oldValue : String = _states[stateName];
if (value === oldValue) return;
_states[stateName] = value;
if (_updatesEnabled) {
// notifies all clients/listener about the state change
_stateManager.setState(stateName, oldValue, value);
// finally dispatches all state changes at once
JCSS_UpdateManager.getInstance().commit();
}
}
public function getState(stateName : String) : String {
if (!_states) return null;
return _states[stateName];
}
/*
* Styles
*/
public function defineStyle(styleName : String, styleValue : *, format : String, priority : uint = 0) : void {
if (_initialized) throw new Error("You cannot define a style for an already initialized component");
_styleValueManager.defineStyle(styleName, styleValue, format, priority);
setStyle("This", styleName, styleValue, priority);
}
public function getDefinedStyles() : Object {
return _styleValueManager.definedStyles;
}
public function getStyle(styleName : String) : * {
return _styleValueManager.getStyle(styleName);
}
/*
* Properties
*/
public function encloseChildren() : void {
if (_initialized) throw new Error("You cannot call encloseChildren() after the component has been initialized.");
_encloseChildren = true;
}
public function childrenEnclosed() : Boolean {
return _encloseChildren;
}
public function set virtualParent(parent : DisplayObject) : void {
if (parent == _virtualParent) return;
// You cannot set a descendant as virtual parent
// The virtual parent needs to be in the display list
if (parent) {
if (!parent.stage) {
throw new Error("You cannot set a virtual parent that is not in the display list");
}
if (_component is DisplayObjectContainer) {
if (DisplayObjectContainer(_component).contains(parent)) {
throw new Error("You cannot set a child component to a virtual parent.");
};
}
}
_virtualParent = parent;
if (_virtualParent) {
_virtualParent.addEventListener(Event.REMOVED_FROM_STAGE, virtualParentRemovedFromStageHandler, false, _jcss.stageEventPriority);
}
virtualParentChanged();
}
public function get virtualParent() : DisplayObject {
return _virtualParent;
}
/*
* Iterators
*/
public function foreachParentStyleManager(callback : Function) : Boolean {
if (!foreachParentComponentStyleManager(callback)) return false;
callback(_jcss.applicationStyleManager);
return true;
}
public function foreachParentComponentStyleManager(callback : Function) : Boolean {
var parentStyleManager : JCSS_ComponentStyleManager = _parentComponentStyleManager;
while (parentStyleManager) {
if (!callback(parentStyleManager)) return false;
parentStyleManager = parentStyleManager._parentComponentStyleManager;
}
return true;
}
/*
* Style values
*/
public function commitStyleChanged(updateInfo : JCSS_UpdateInfo) : void {
_styleValueManager.snapshotStyles();
if (updateInfo.updateAll) {
removeStyleRuleListeners();
_styleValueManager.clearAllStyles();
_roleManager.initRoles();
initStyleRules();
} else {
var reason : String;
var propertyName : String;
var styleRule : JCSS_StyleRule;
for (var key : * in updateInfo.styleRules) {
styleRule = key;
reason = updateInfo.styleRules[styleRule][0];
switch (reason) {
case JCSS_UpdateManager.STYLE_RULE_ACTIVATED:
case JCSS_UpdateManager.STYLE_RULE_ADDED:
_styleValueManager.addStyleRule(styleRule);
break;
case JCSS_UpdateManager.STYLE_CHANGED:
_styleValueManager.updateStyleRule(styleRule);
break;
case JCSS_UpdateManager.STYLE_RULE_REMOVED:
case JCSS_UpdateManager.STYLE_RULE_DEACTIVATED:
_styleValueManager.removeStyleRule(styleRule);
break;
case JCSS_UpdateManager.STYLE_REMOVED:
propertyName = updateInfo.styleRules[styleRule][1];
_styleValueManager.removeStyle(styleRule, propertyName);
break;
}
}
}
//trace ("------------------------------commitStateChange", this, parentChainAsString());
var changedStyles : JCSS_ChangeEvent = _styleValueManager.getChangedStyles();
if (changedStyles.hasChangedValue()) _jcssAdapter.stylesChanged_internal(changedStyles);
}
/*
* StyleManager
*/
/**
* Called after a matching style rule has been added at runtime.
*/
public function styleManager_notifyStyleRuleAdded(styleRule : JCSS_StyleRule) : void {
// trace ("ADD RULE RUNTIME", styleRule, this);
if (styleRule.numStates) {
_stateManager.setListenersForStyleRule(styleRule);
if (!_stateManager.styleRuleIsActive(styleRule)) return;
}
JCSS_UpdateManager.getInstance().updateStyleRule(this, styleRule, JCSS_UpdateManager.STYLE_RULE_ADDED);
}
/**
* Called after a matching style rule has been updated at runtime.
*/
public function styleManager_notifyStyleChanged(styleRule : JCSS_StyleRule) : void {
// trace ("UPDATE RULE RUNTIME", styleRule, this);
if (styleRule.numStates) {
if (!_stateManager.styleRuleIsActive(styleRule)) return;
}
JCSS_UpdateManager.getInstance().updateStyleRule(this, styleRule, JCSS_UpdateManager.STYLE_CHANGED);
}
/**
* Called after a style rule has been removed via clearStyle().
*/
public function styleManager_notifyStyleRuleRemoved(styleRule : JCSS_StyleRule) : void {
if (styleRule.numStates) {
var active : Boolean = _stateManager.styleRuleIsActive(styleRule);
_stateManager.removeListenersForStyleRule(styleRule);
if (!active) return;
}
JCSS_UpdateManager.getInstance().updateStyleRule(this, styleRule, JCSS_UpdateManager.STYLE_RULE_REMOVED);
}
/**
* Called after a style has been removed via clearStyle().
*/
public function styleManager_notifyStyleRemoved(styleRule : JCSS_StyleRule, propertyName : String) : void {
if (styleRule.numStates) {
if (!_stateManager.styleRuleIsActive(styleRule)) return;
}
JCSS_UpdateManager.getInstance().updateStyleRule(this, styleRule, JCSS_UpdateManager.STYLE_REMOVED, propertyName);
}
/*
* ComponentRoleManager
*/
public function get componentRoleManager() : JCSS_ComponentRoleManager {
return _roleManager as JCSS_ComponentRoleManager;
}
/*
* DynamicStyleRuleManager
*/
public function get stateManager() : JCSS_StateManager {
return _stateManager;
}
/**
* Called after a dynamic style rule has been activated.
*/
public function dynamicStyleRuleManager_notifyStyleRuleActivated(styleRule : JCSS_StyleRule, active : Boolean) : void {
//trace ("styleRuleActivated", this, styleRule, active);
if (active) {
JCSS_UpdateManager.getInstance().updateStyleRule(this, styleRule, JCSS_UpdateManager.STYLE_RULE_ACTIVATED);
} else {
JCSS_UpdateManager.getInstance().updateStyleRule(this, styleRule, JCSS_UpdateManager.STYLE_RULE_DEACTIVATED);
}
}
/*
* Add and Remove events
*/
private function addedToStageHandler(event : Event) : void {
_component.removeEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);
_component.addEventListener(Event.REMOVED_FROM_STAGE, removedFromStageHandler, false, _jcss.stageEventPriority);
//trace ("ADDED_TO_STAGE", this);
findAndRegisterToParent();
// init all ancestor and descendant roles
_roleManager.initRoles();
if (_initialized) {
_styleValueManager.snapshotStyles();
_styleValueManager.clearAllStyles();
initStyleRules();
_updatesEnabled = true;
var changedStyles : JCSS_ChangeEvent = _styleValueManager.getChangedStyles();
if (changedStyles.hasChangedValue()) _jcssAdapter.stylesChanged_internal(changedStyles);
} else {
// init style rules and styles
initStyleRules();
_initialized = true;
_updatesEnabled = true;
_jcssAdapter.stylesInitialized_internal();
}
}
private function removedFromStageHandler(event : Event) : void {
_component.removeEventListener(Event.REMOVED_FROM_STAGE, removedFromStageHandler);
_component.addEventListener(Event.ADDED_TO_STAGE, addedToStageHandler, false, _jcss.stageEventPriority);
//trace ("REMOVED_FROM_STAGE", this, _jcssAdapter.component.stage, _jcssAdapter.component.root, _jcssAdapter.component.parent);
removeAllParentAndUpdateReferences();
_updatesEnabled = false;
}
private function removeAllParentAndUpdateReferences() : void {
removeStyleRuleListeners();
unregisterFromParent();
removeVirtualParent();
JCSS_UpdateManager.getInstance().removeFromUpdates(this);
}
/*
* Virtual parent
*/
private function virtualParentRemovedFromStageHandler(event : Event) : void {
removeVirtualParent();
virtualParentChanged();
}
private function removeVirtualParent() : void {
if (_virtualParent) {
_virtualParent.removeEventListener(Event.REMOVED_FROM_STAGE, virtualParentRemovedFromStageHandler);
_virtualParent = null;
}
}
private function virtualParentChanged() : void {
if (!_updatesEnabled) return;
unregisterFromParent();
findAndRegisterToParent();
JCSS_UpdateManager.getInstance().updateAll(this);
foreachChildComponentStyleManager(setVirtualParentCallback);
function setVirtualParentCallback(styleManager : JCSS_ComponentStyleManager) : Boolean {
styleManager.initDepth();
JCSS_UpdateManager.getInstance().updateAll(styleManager);
return true;
}
JCSS_UpdateManager.getInstance().commit();
}
/*
* Initialize / Update
*/
private function findAndRegisterToParent() : void {
var parent : DisplayObject = _virtualParent ? _virtualParent : _component.parent;
while (parent) {
_parentComponentStyleManager = _jcss.getComponentStyleManager(parent);
if (_parentComponentStyleManager) break;
parent = parent.parent;
}
//trace ("PARENT", _styleManagerID, 0);
if (_parentComponentStyleManager) {
_parentComponentStyleManager.registerDescendant(this);
} else {
_jcss.applicationStyleManager.registerDescendant(this);
}
initDepth();
}
private function initDepth() : void {
if (_parentComponentStyleManager) {
_depth = _parentComponentStyleManager.depth + 1;
} else {
_depth = 1;
}
setStyleRuleSpecifities();
}
private function setStyleRuleSpecifities() : void {
_styleRuleTree.foreachStyleRule(setStyleRuleSpecifitiesCallback);
function setStyleRuleSpecifitiesCallback(styleRule : JCSS_StyleRule) : void {
styleRule.setOwnerDepth(_depth);
}
}
private function initStyleRules() : void {
componentRoleManager.foreachStyleRule(initStyleRule);
function initStyleRule(styleRule : JCSS_StyleRule) : void {
//trace("RULE", _styleManagerID, styleRule.selectorString);
var active : Boolean = true;
if (styleRule.numStates) {
_stateManager.setListenersForStyleRule(styleRule);
active = _stateManager.styleRuleIsActive(styleRule);
}
if (active) _styleValueManager.addStyleRule(styleRule);
}
}
/*
* Cleanup
*/
private function unregisterFromParent() : void {
if (_parentComponentStyleManager) {
_parentComponentStyleManager.unregisterDescendant(this);
} else {
_jcss.applicationStyleManager.unregisterDescendant(this);
}
}
private function removeStyleRuleListeners() : void {
componentRoleManager.unregisterFromTreeNodes();
componentRoleManager.foreachStyleRule(removeListenersCallback);
function removeListenersCallback(styleRule : JCSS_StyleRule) : void {
if (styleRule.numStates) {
_stateManager.removeListenersForStyleRule(styleRule);
}
}
}
/*
* Info
*/
override public function styleRuleTreeAsString() : String {
var string : String = "------------------ StyleRuleTree for " + parentChainAsString() + "\n";
string += _styleRuleTree.dumpAsString("This");
string += "\n";
return string;
}
public function componentSelectorAsString() : String {
return _cssName + (_cssID ? "#" + _cssID : "") + (_cssClass ? "." + _cssClass : "");
}
public function stylesAsString(styles : Object = null) : String {
var string : String = "------------------ Styles for";
string += " " + parentChainAsString();
string += " ------------------\n";
string += _styleValueManager.stylesAsString(styles);
return string;
}
public function parentChainAsString() : String {
var ancestorString : String = componentSelectorAsString() + "(" + _styleManagerID + ")";
var parentStyleManager : JCSS_ComponentStyleManager = _parentComponentStyleManager;
while (parentStyleManager) {
ancestorString += " < " + parentStyleManager.componentSelectorAsString() + "(" + parentStyleManager.styleManagerID + ")";
parentStyleManager = parentStyleManager._parentComponentStyleManager;
}
return ancestorString;
}
public function toString() : String {
return "[ComponentStyleManager] id:" + _styleManagerID + " chain:" + parentChainAsString();
}
}
}
| 31.044925
| 133
| 0.718405
|
011eade9ff12ccf3b1c07e044b3d4b639a5b0dfd
| 23,220
|
as
|
ActionScript
|
bin/Data/Scripts/Screens/menu.as
|
ArnisLielturks/GameOff2017-WildDimension
|
16d5cd0a0a7c8c520bee974f008ba719e37c996f
|
[
"MIT"
] | null | null | null |
bin/Data/Scripts/Screens/menu.as
|
ArnisLielturks/GameOff2017-WildDimension
|
16d5cd0a0a7c8c520bee974f008ba719e37c996f
|
[
"MIT"
] | null | null | null |
bin/Data/Scripts/Screens/menu.as
|
ArnisLielturks/GameOff2017-WildDimension
|
16d5cd0a0a7c8c520bee974f008ba719e37c996f
|
[
"MIT"
] | null | null | null |
#include "Screens/options.as"
namespace MenuScreen {
const float MAX_OPACITY = 0.99f;
const String GUI_FONT = "Fonts/PainttheSky-Regular.otf";
const int GUI_FONT_SIZE = Helpers::getHeightByPercentage(0.04);
const int GUI_FONT_SIZE_STORY = Helpers::getHeightByPercentage(0.026);
const float INSTRUCTION_TIME = 5.0f;
Sprite@ fromSprite;
Sprite@ toSprite;
Sprite@ mapSprite;
Sprite@ boardSprite;
Sprite@ pencilSprite;
Array<Sprite@> path;
Vector2 fromLocation(190, 220);
Vector2 toLocation(410, 380);
const float DRAW_PATH_TIMEOUT = 0.1f;
Vector2 direction = Vector2(1, 0);
Array<Button@> buttons;
Sprite@ instructionsScreen;
const float DOT_MARGIN = 20.0f;
const float PATH_FILL_SPEED = 1.0f;
Button@ storyCloseButton;
Sprite@ storySprite;
Text@ storyText;
Text@ loadingText;
bool started = false;
float scale = 1.1f;
bool zoomIn = true;
float rotation = 0.0f;
bool clockwise = true;
Vector2 boardInitialPosition;
Vector2 boardDirection;
void AddSpriteToTable(Vector2 position, float rotation, String texture, int priority)
{
Sprite@ sprite = boardSprite.CreateChild("Sprite");
Texture2D@ logoTexture = cache.GetResource("Texture2D", texture);
//if (logoTexture is null)
// return;
// Set logo sprite texture
sprite.texture = logoTexture;
int textureWidth = logoTexture.width;
int textureHeight = logoTexture.height;
// Set logo sprite scale
sprite.SetScale(1);
// Set logo sprite size
sprite.SetSize(textureWidth, textureHeight);
//mapSprite.position = Vector2(textureWidth/2, -textureHeight/2);
// Set logo sprite hot spot
sprite.SetHotSpot(textureWidth / 2, textureHeight / 2);
// Set logo sprite alignment
sprite.SetAlignment(HA_CENTER, VA_CENTER);
//mapSprite.position = Vector2(-textureWidth/2, -textureHeight/2);
// Make logo not fully opaque to show the scene underneath
sprite.opacity = MAX_OPACITY;
sprite.position = position;
sprite.blendMode = BLEND_REPLACE;
// Set a low priority for the logo so that other UI elements can be drawn on top
sprite.priority = priority;
sprite.rotation = rotation;
}
void CreateStory()
{
// Get logo texture
Texture2D@ notesTexture = cache.GetResource("Texture2D", "Textures/paper.png");
if (notesTexture is null) {
return;
}
// Create logo sprite and add to the UI layout
storySprite = ui.root.CreateChild("Sprite");
// Set logo sprite texture
storySprite.texture = notesTexture;
float w = graphics.width;
int textureWidth = Helpers::getWidthByPercentage(0.5);
int textureHeight = notesTexture.height * Helpers::getRatio(notesTexture.width, textureWidth);
// Set logo sprite scale
//notesSprite.SetScale(256.0f / textureWidth);
// Set logo sprite size
storySprite.SetSize(textureWidth, textureHeight);
storySprite.position = Vector2(-Helpers::getWidthByPercentage(0.02), -Helpers::getWidthByPercentage(0.02));
// Set logo sprite hot spot
storySprite.SetHotSpot(textureWidth/2, textureHeight/2);
// Set logo sprite alignment
storySprite.SetAlignment(HA_CENTER, VA_CENTER);
// Make logo not fully opaque to show the scene underneath
storySprite.opacity = MAX_OPACITY;
// Set a low priority for the logo so that other UI elements can be drawn on top
storySprite.priority = 100;
storyText = storySprite.CreateChild("Text");
storyText.position = IntVector2(10, 10);
storyText.text = "\n Adventure seeker pilot decides to cross Pacific ocean with his private";
storyText.text += "\njet. While flying over the ocean he comes across a hurricane which was not";
storyText.text += "\nmentioned in the weather forecast. Hurricane becomes more powerful each";
storyText.text += "\nsecond and the plane get's sucked in. Pilot is struggling to control";
storyText.text += "\nhis plane and after some time losses consciousness when he hits his";
storyText.text += "\nhead against one of the panels inside plane... He falls with his";
storyText.text += "\nplane for a while when finally he's thrown back to the ground...";
storyText.text += "\n\n He wakes up the next day on a mysterious island. He's unable";
storyText.text += "\nto locate the island on the map, and everything about the island seems";
storyText.text += "\na bit strange... Will he survive the wilderness and reveal the secrets";
storyText.text += "\nof the island? Will he be able to get back to civilization?";
storyText.opacity = MAX_OPACITY;
storyText.color = Color(0, 0, 0);
storyText.SetFont(cache.GetResource("Font", GUI_FONT), GUI_FONT_SIZE_STORY);
//storyText.SetAlignment(HA_CENTER, VA_CENTER);
//storyText.textAlignment = HA_LEFT; // Center rows in relation to each other
storySprite.visible = false;
}
void CreateInstructions()
{
Texture2D@ notesTexture = cache.GetResource("Texture2D", "Textures/Screens/Instruction.png");
if (notesTexture is null) {
return;
}
// Create logo sprite and add to the UI layout
instructionsScreen = ui.root.CreateChild("Sprite");
// Set logo sprite texture
instructionsScreen.texture = notesTexture;
float w = graphics.width;
int textureHeight = Helpers::getHeightByPercentage(0.8);
int textureWidth = notesTexture.width * Helpers::getRatio(notesTexture.height, textureHeight);
// Set logo sprite scale
//notesSprite.SetScale(256.0f / textureWidth);
// Set logo sprite size
instructionsScreen.SetSize(textureWidth, textureHeight);
instructionsScreen.position = Vector2(0, 0);
// Set logo sprite hot spot
instructionsScreen.SetHotSpot(textureWidth/2, textureHeight/2);
// Set logo sprite alignment
instructionsScreen.SetAlignment(HA_CENTER, VA_CENTER);
// Make logo not fully opaque to show the scene underneath
instructionsScreen.opacity = MAX_OPACITY;
// Set a low priority for the logo so that other UI elements can be drawn on top
instructionsScreen.priority = 100;
Text@ instructionsText = instructionsScreen.CreateChild("Text");
instructionsText.text = "Show controls";
instructionsText.SetFont(cache.GetResource("Font", "Fonts/PainttheSky-Regular.otf"), 40);
instructionsText.textAlignment = HA_CENTER; // Center rows in relation to each other
// Position the text relative to the screen center
instructionsText.horizontalAlignment = HA_LEFT;
instructionsText.verticalAlignment = VA_TOP;
instructionsText.SetPosition(textureWidth * 0.2, textureHeight * 0.01);
Text@ objectiveText = instructionsScreen.CreateChild("Text");
objectiveText.text = "Show current objective";
objectiveText.SetFont(cache.GetResource("Font", "Fonts/PainttheSky-Regular.otf"), 40);
objectiveText.textAlignment = HA_CENTER; // Center rows in relation to each other
// Position the text relative to the screen center
objectiveText.horizontalAlignment = HA_LEFT;
objectiveText.verticalAlignment = VA_TOP;
objectiveText.SetPosition(textureWidth * 0.2, textureHeight * 0.15);
Text@ toolText = instructionsScreen.CreateChild("Text");
toolText.text = "Change active tool";
toolText.SetFont(cache.GetResource("Font", "Fonts/PainttheSky-Regular.otf"), 40);
toolText.textAlignment = HA_CENTER; // Center rows in relation to each other
// Position the text relative to the screen center
toolText.horizontalAlignment = HA_LEFT;
toolText.verticalAlignment = VA_TOP;
toolText.SetPosition(textureWidth * 0.2, textureHeight * 0.30);
Text@ movementText = instructionsScreen.CreateChild("Text");
movementText.text = "Move";
movementText.SetFont(cache.GetResource("Font", "Fonts/PainttheSky-Regular.otf"), 40);
movementText.textAlignment = HA_CENTER; // Center rows in relation to each other
// Position the text relative to the screen center
movementText.horizontalAlignment = HA_LEFT;
movementText.verticalAlignment = VA_TOP;
movementText.SetPosition(textureWidth * 0.4, textureHeight * 0.5);
Text@ sprintText = instructionsScreen.CreateChild("Text");
sprintText.text = "Sprint";
sprintText.SetFont(cache.GetResource("Font", "Fonts/PainttheSky-Regular.otf"), 40);
sprintText.textAlignment = HA_CENTER; // Center rows in relation to each other
// Position the text relative to the screen center
sprintText.horizontalAlignment = HA_LEFT;
sprintText.verticalAlignment = VA_TOP;
sprintText.SetPosition(textureWidth * 0.4, textureHeight * 0.72);
Text@ jumpText = instructionsScreen.CreateChild("Text");
jumpText.text = "Jump";
jumpText.SetFont(cache.GetResource("Font", "Fonts/PainttheSky-Regular.otf"), 40);
jumpText.textAlignment = HA_CENTER; // Center rows in relation to each other
// Position the text relative to the screen center
jumpText.horizontalAlignment = HA_LEFT;
jumpText.verticalAlignment = VA_TOP;
jumpText.SetPosition(textureWidth * 0.55, textureHeight * 0.86);
}
void FillTable()
{
AddSpriteToTable(Vector2(-500, 250), 22.0f, "Textures/notes.png", -60);
AddSpriteToTable(Vector2(350, -150), -5.0f, "Textures/pencil.png", -60);
AddSpriteToTable(Vector2(400, -300), -15.0f, "Textures/coffe.png", -60);
}
void CreateBoard()
{
boardSprite = ui.root.CreateChild("Sprite");
Texture2D@ logoTexture = cache.GetResource("Texture2D", "Textures/board.png");
//if (logoTexture is null)
// return;
// Set logo sprite texture
boardSprite.texture = logoTexture;
int textureWidth = Helpers::getWidthByPercentage(1.5);
int textureHeight = logoTexture.height * Helpers::getRatio(logoTexture.width, textureWidth);
// Set logo sprite scale
boardSprite.SetScale(1);
// Set logo sprite size
boardSprite.SetSize(textureWidth, textureHeight);
//mapSprite.position = Vector2(textureWidth/2, -textureHeight/2);
// Set logo sprite hot spot
boardSprite.SetHotSpot(textureWidth / 2, textureHeight / 2);
// Set logo sprite alignment
boardSprite.SetAlignment(HA_CENTER, VA_CENTER);
//mapSprite.position = Vector2(-textureWidth/2, -textureHeight/2);
// Make logo not fully opaque to show the scene underneath
boardSprite.opacity = MAX_OPACITY;
// Set a low priority for the logo so that other UI elements can be drawn on top
boardSprite.priority = -110;
boardInitialPosition = boardSprite.position;
boardDirection = Vector2(-0.4, -0.7);
FillTable();
}
void CreateScreen()
{
input.mouseVisible = true;
CreateBoard();
mapSprite = boardSprite.CreateChild("Sprite");
Texture2D@ logoTexture = cache.GetResource("Texture2D", "Textures/world_map.png");
//if (logoTexture is null)
// return;
// Set logo sprite texture
mapSprite.texture = logoTexture;
int textureWidth = logoTexture.width;
int textureHeight = logoTexture.height;
// Set logo sprite scale
mapSprite.SetScale(scale);
toLocation * mapSprite.scale.length;
fromLocation * mapSprite.scale.length;
// Set logo sprite size
mapSprite.SetSize(textureWidth, textureHeight);
//mapSprite.position = Vector2(textureWidth/2, -textureHeight/2);
// Set logo sprite hot spot
mapSprite.SetHotSpot(textureWidth / 2, textureHeight / 2);
// Set logo sprite alignment
mapSprite.SetAlignment(HA_CENTER, VA_CENTER);
//mapSprite.position = Vector2(-textureWidth/2, -textureHeight/2);
// Make logo not fully opaque to show the scene underneath
mapSprite.opacity = MAX_OPACITY;
// Set a low priority for the logo so that other UI elements can be drawn on top
mapSprite.priority = -100;
SubscribeToEvent("Update", "MenuScreen::HandleUpdate");
CreateFromSprite();
CreateToSprite();
CreatePath();
CreateStory();
CreateButtons();
Options::Create();
}
void CreateButtons()
{
Font@ font = cache.GetResource("Font", GUIHandler::GUI_FONT);
XMLFile@ uiStyle = cache.GetResource("XMLFile", "UI/Menu.xml");
CreateButton("Exit", "MenuScreen::HandleExitGame", IntVector2(-20, -20));
CreateButton("Settings", "MenuScreen::HandleSettingsButton", IntVector2(-20, -80));
CreateButton("Start", "MenuScreen::HandleNewGame", IntVector2(-20, -140));
CreateButton("Story", "MenuScreen::HandleStory", IntVector2(20, -20), false);
// Create the button and center the text onto it
storyCloseButton = storySprite.CreateChild("Button");
storyCloseButton.SetStyleAuto(uiStyle);
storyCloseButton.SetPosition(0, 0);
storyCloseButton.SetSize(100, 40);
storyCloseButton.SetAlignment(HA_RIGHT, VA_BOTTOM);
Text@ storyCloseButtonText = storyCloseButton.CreateChild("Text");
storyCloseButtonText.SetAlignment(HA_CENTER, VA_TOP);
storyCloseButtonText.SetFont(font, 30);
storyCloseButtonText.textAlignment = HA_CENTER;
storyCloseButtonText.text = "Close";
storyCloseButtonText.position = IntVector2(0, -10);
SubscribeToEvent(storyCloseButton, "Released", "MenuScreen::HandleStoryClose");
}
void CreateButton(String name, String handler, IntVector2 position, bool right = true)
{
Font@ font = cache.GetResource("Font", GUIHandler::GUI_FONT);
XMLFile@ uiStyle = cache.GetResource("XMLFile", "UI/Menu.xml");
Button@ button = ui.root.CreateChild("Button");
button.SetStyleAuto(uiStyle);
button.SetPosition(position.x, position.y);
button.SetSize(100, 40);
if (right) {
button.SetAlignment(HA_RIGHT, VA_BOTTOM);
} else {
button.SetAlignment(HA_LEFT, VA_BOTTOM);
}
Text@ buttonText = button.CreateChild("Text");
buttonText.SetAlignment(HA_CENTER, VA_TOP);
buttonText.SetFont(font, 30);
buttonText.textAlignment = HA_CENTER;
buttonText.text = name;
buttonText.position = IntVector2(0, -10);
SubscribeToEvent(button, "Released", handler);
buttons.Push(button);
}
void HandleSettingsButton(StringHash eventType, VariantMap& eventData)
{
Options::Show();
}
void HandleNewGame(StringHash eventType, VariantMap& eventData)
{
Destroy();
CreateInstructions();
SetLoadingText();
DelayedExecute(INSTRUCTION_TIME, false, "void MenuScreen::StartGame()");
}
void HandleStory(StringHash eventType, VariantMap& eventData)
{
storySprite.visible = true;
}
void HandleStoryClose(StringHash eventType, VariantMap& eventData)
{
storySprite.visible = false;
}
void StartGame()
{
Destroy();
if (!started) {
SendEvent("NewGame");
started = true;
}
}
void HandleExitGame(StringHash eventType, VariantMap& eventData)
{
engine.Exit();
}
void SetLoadingText()
{
loadingText = ui.root.CreateChild("Text");
loadingText.text = "Please wait... Crashing the plane...";
loadingText.SetFont(cache.GetResource("Font", "Fonts/PainttheSky-Regular.otf"), 40);
loadingText.textAlignment = HA_CENTER; // Center rows in relation to each other
// Position the text relative to the screen center
loadingText.horizontalAlignment = HA_RIGHT;
loadingText.verticalAlignment = VA_BOTTOM;
loadingText.SetPosition(-20, -20);
}
void CreateFromSprite()
{
fromSprite = mapSprite.CreateChild("Sprite");
Texture2D@ logoTexture = cache.GetResource("Texture2D", "Textures/map_destination.png");
//if (logoTexture is null)
// return;
// Set logo sprite texture
fromSprite.texture = logoTexture;
int textureWidth = logoTexture.width;
int textureHeight = logoTexture.height;
// Set logo sprite scale
//logoSprite.SetScale(256.0f / textureWidth);
// Set logo sprite size
fromSprite.SetSize(textureWidth/4, textureHeight/4);
fromSprite.position = fromLocation;
// Set logo sprite hot spot
fromSprite.SetHotSpot(fromSprite.size.x/4, fromSprite.size.y);
// Set logo sprite alignment
fromSprite.SetAlignment(HA_LEFT, VA_TOP);
//fromSprite.position = Vector2(-textureWidth/2, -textureHeight/2);
// Make logo not fully opaque to show the scene underneath
fromSprite.opacity = MAX_OPACITY;
// Set a low priority for the logo so that other UI elements can be drawn on top
fromSprite.priority = -80;
}
void CreateToSprite()
{
toSprite = mapSprite.CreateChild("Sprite");
Texture2D@ logoTexture = cache.GetResource("Texture2D", "Textures/map_destination.png");
//if (logoTexture is null)
// return;
// Set logo sprite texture
toSprite.texture = logoTexture;
int textureWidth = logoTexture.width;
int textureHeight = logoTexture.height;
// Set logo sprite scale
//logoSprite.SetScale(256.0f / textureWidth);
// Set logo sprite size
//toSprite.SetSize(textureWidth/2, textureHeight/2);
toSprite.SetSize(textureWidth/4, textureHeight/4);
toSprite.position = toLocation;
// Set logo sprite hot spot
toSprite.SetHotSpot(toSprite.size.x/4, toSprite.size.y);
// Set logo sprite alignment
toSprite.SetAlignment(HA_LEFT, VA_TOP);
//toSprite.position = Vector2(-textureWidth/2, -textureHeight/2);
// Make logo not fully opaque to show the scene underneath
toSprite.opacity = MAX_OPACITY;
// Set a low priority for the logo so that other UI elements can be drawn on top
toSprite.priority = -80;
}
void CreatePath()
{
bool reached = false;
Vector2 position = fromSprite.position;
while (!reached) {
Sprite@ sprite = mapSprite.CreateChild("Sprite");
Texture2D@ logoTexture = cache.GetResource("Texture2D", "Textures/map_dot.png");
//if (logoTexture is null)
// return;
// Set logo sprite texture
sprite.texture = logoTexture;
int textureWidth = logoTexture.width;
int textureHeight = logoTexture.height;
// Set logo sprite scale
//logoSprite.SetScale(256.0f / textureWidth);
// Set logo sprite size
//toSprite.SetSize(textureWidth/2, textureHeight/2);
sprite.SetSize(16, 16);
sprite.position = position;
// Set logo sprite hot spot
//sprite.SetHotSpot(sprite.size.x/2, sprite.size.y);
// Set logo sprite alignment
sprite.SetAlignment(HA_LEFT, VA_TOP);
//toSprite.position = Vector2(-textureWidth/2, -textureHeight/2);
// Make logo not fully opaque to show the scene underneath
sprite.opacity = 0.0f;
// Set a low priority for the logo so that other UI elements can be drawn on top
sprite.priority = -80;
Vector2 diff = toLocation - position;
direction += diff / 400;
if (direction.length > 0) {
direction.Normalize();
}
position += direction * DOT_MARGIN;
if (position.length > toLocation.length - 10) {
if (toLocation == fromLocation) {
if (Vector2(toLocation - position).length < 10) {
reached = true;
}
}
reached = true;
toLocation = fromLocation;
}
path.Push(sprite);
}
}
void Destroy()
{
if (mapSprite !is null) {
mapSprite.Remove();
}
if (toSprite !is null) {
toSprite.Remove();
}
if (fromSprite !is null) {
fromSprite.Remove();
}
if (loadingText !is null) {
loadingText.Remove();
}
if (boardSprite !is null) {
boardSprite.Remove();
}
if (storySprite !is null) {
storySprite.Remove();
}
if (instructionsScreen !is null) {
instructionsScreen.Remove();
}
for (uint i = 0; i < buttons.length; i++) {
buttons[i].Remove();
}
buttons.Clear();
Options::Destroy();
}
void HandleUpdate(StringHash eventType, VariantMap& eventData)
{
float timeStep = eventData["TimeStep"].GetFloat();
if (zoomIn) {
scale += timeStep / 50.0f;
if (scale > 1.5f) {
zoomIn = false;
}
} else {
scale -= timeStep / 50.0f;
if (scale < 0.9f) {
zoomIn = true;
}
}
if (clockwise) {
rotation += timeStep;
if (rotation > 5.0f) {
clockwise = false;
}
} else {
rotation -= timeStep;
if (rotation < -5.0f) {
clockwise = true;
}
}
Vector2 boardDiff = boardInitialPosition - boardSprite.position;
boardSprite.position -= boardDirection * timeStep * 10.0f;
if (boardDiff.x < -100) {
boardDirection.x = 1;
}
if (boardDiff.x > 100) {
boardDirection.x = -1;
}
if (boardDiff.y < -100) {
boardDirection.y = 1;
}
if (boardDiff.y > 100) {
boardDirection.y = -1;
}
boardSprite.rotation = rotation;
boardSprite.SetScale(scale);
for (uint i = 0; i < path.length; i++) {
if (i == 0) {
if (path[i].opacity > MAX_OPACITY) {
path[i].opacity = MAX_OPACITY;
}
path[i].opacity += timeStep * PATH_FILL_SPEED;
}
if (i > 0) {
if (path[i - 1].opacity > 0.5f) {
path[i].opacity += timeStep * PATH_FILL_SPEED;
}
}
}
}
}
| 35.396341
| 115
| 0.621662
|
592a3e98c628bef23c25c23e7653890184c90673
| 5,437
|
as
|
ActionScript
|
src/org/as3lib/kitchensync/easing/Elastic.as
|
road0001/kitchensynclib
|
9c27170453ca8f07d45c9b3862af7fa730794d43
|
[
"Unlicense"
] | 4
|
2016-09-19T06:31:15.000Z
|
2021-04-24T14:13:27.000Z
|
src/org/as3lib/kitchensync/easing/Elastic.as
|
road0001/kitchensynclib
|
9c27170453ca8f07d45c9b3862af7fa730794d43
|
[
"Unlicense"
] | null | null | null |
src/org/as3lib/kitchensync/easing/Elastic.as
|
road0001/kitchensynclib
|
9c27170453ca8f07d45c9b3862af7fa730794d43
|
[
"Unlicense"
] | null | null | null |
package org.as3lib.kitchensync.easing
{
public class Elastic
{
private static const TWICE_PI:Number = Math.PI * 2;
private static const DEFAULT_PERIOD:Number = 0.3;
/**
* easeIn starts out slow and increases in speed towards the end of the duration.
* The values wobble around the starting point before going towards the end point.
*
* @author modified by Mims H. Wright, 2007
* @author (c) 2003 Robert Penner, all rights reserved. - This work is subject to the terms in http://www.robertpenner.com/easing_terms_of_use.html
* @see http://www.robertpenner.com/easing_terms_of_use.html
* @see http://www.robertpenner.com/easing/
*
* @param timeElapsed The time since the tween began in milliseconds or frames.
* @param duration The duration of the tween, in milliseconds or frames.
* @param amplitude The aplitude of the sine wave. Low numbers are less extreme than high numbers.
* @param period The period of the sine wave. Low numbers are wobbly, high numbers are smooth.
* @return percentage complete - between 0.0 and 1.0 but it may extend below 0.0 or above 1.0
*/
public static function easeIn(timeElapsed:Number, duration:Number, amplitude:Number = 0, period:Number = 0):Number
{
if (timeElapsed <= 0) {
return 0;
}
if ((timeElapsed /= duration) >= 1) {
return 1;
}
if (period == 0) {
period = duration * DEFAULT_PERIOD;
}
var decay:Number;
if (amplitude < 1) {
amplitude = 1;
decay = period / 4;
} else {
decay= period / TWICE_PI * Math.asin (1/amplitude);
}
return -(amplitude*Math.pow(2,10*(timeElapsed-=1)) * Math.sin( (timeElapsed*duration-decay)*TWICE_PI/period ));
}
/**
* easeOut starts out fast and decreases in speed towards the end of the duration.
* The values wobble around the endpoint after reaching it.
*
* @param timeElapsed The time since the tween began in milliseconds or frames.
* @param duration The duration of the tween, in milliseconds or frames.
* @param amplitude The aplitude of the sine wave. Low numbers are less extreme than high numbers.
* @param period The period of the sine wave. Low numbers are wobbly, high numbers are smooth.
* @return percentage complete - between 0.0 and 1.0 but it may extend below 0.0 or above 1.0
*/
public static function easeOut(timeElapsed:Number, duration:Number, amplitude:Number = 0, period:Number = 0):Number
{
if (timeElapsed <= 0) {
return 0;
}
if ((timeElapsed /= duration) >= 1) {
return 1;
}
if (!period) {
period = duration * DEFAULT_PERIOD;
}
var decay:Number;
if (amplitude < 1) {
amplitude = 1;
decay = period / 4;
} else {
decay= period / TWICE_PI * Math.asin (1/amplitude);
}
return (amplitude*Math.pow(2,-10*timeElapsed) * Math.sin( (timeElapsed*duration-decay)*TWICE_PI/period ) + 1);
}
/**
* easeInOut combines the motion of easeIn and easeOut by starting out slow and increasing in speed
* towards the middle of the duration, then slowing down again towards the end.
* The values wobble around the starting point (0.0) then go to the the end point (1.0) and wobble there as well.
*
* @param timeElapsed The time since the tween began in milliseconds or frames.
* @param duration The duration of the tween, in milliseconds or frames.
* @param amplitude The aplitude of the sine wave. Low numbers are less extreme than high numbers.
* @param period The period of the sine wave. Low numbers are wobbly, high numbers are smooth.
* @return percentage complete - between 0.0 and 1.0 but it may extend below 0.0 or above 1.0
*/
public static function easeInOut(timeElapsed:Number, duration:Number, amplitude:Number = 0, period:Number = 0):Number
{
if (timeElapsed <= 0) {
return 0;
}
if ((timeElapsed /= duration/2) >= 2) {
return 1;
}
if (!period) {
period = duration * (DEFAULT_PERIOD * 1.5);
}
var decay:Number;
if (amplitude < 1) {
amplitude = 1;
decay = period / 4;
} else {
decay = period / TWICE_PI * Math.asin (1/amplitude);
}
if (timeElapsed < 1) {
return -0.5*(amplitude*Math.pow(2,10*(timeElapsed-=1)) * Math.sin((timeElapsed*duration-decay)*TWICE_PI/period ));
}
return 0.5*(amplitude*Math.pow(2,-10*(timeElapsed-=1)) * Math.sin((timeElapsed*duration-decay)*TWICE_PI/period )) + 1;
}
/**
* easeOutIn combines the motion of easeIn and easeOut by starting out decelerating
* towards the middle of the duration, then accelerating end.
*
* @param timeElapsed The time since the tween began in milliseconds or frames.
* @param duration The duration of the tween, in milliseconds or frames.
* @param amplitude The aplitude of the sine wave. Low numbers are less extreme than high numbers.
* @param period The period of the sine wave. Low numbers are wobbly, high numbers are smooth.
* @return percentage complete - between 0.0 and 1.0 but it may extend below 0.0 or above 1.0
*/
public static function easeOutIn (timeElapsed:Number, duration:Number, amplitude:Number = 0, period:Number = 0):Number {
if (timeElapsed < duration/2) return easeOut(timeElapsed*2, duration, amplitude, period)/2;
return easeIn((timeElapsed*2)-duration, duration, amplitude, period)/2 + 0.5;
}
}
}
| 42.811024
| 149
| 0.673717
|
bcbb915f6f97eed41f406a21638025a9a235bd62
| 174
|
as
|
ActionScript
|
org/alivepdf/transitions/Dimension.as
|
systemed/halcyon_pdf
|
12e1a2683241145752ddc6ae32113ef88c1db59c
|
[
"WTFPL"
] | 1
|
2021-02-13T08:08:29.000Z
|
2021-02-13T08:08:29.000Z
|
org/alivepdf/transitions/Dimension.as
|
systemed/halcyon_pdf
|
12e1a2683241145752ddc6ae32113ef88c1db59c
|
[
"WTFPL"
] | null | null | null |
org/alivepdf/transitions/Dimension.as
|
systemed/halcyon_pdf
|
12e1a2683241145752ddc6ae32113ef88c1db59c
|
[
"WTFPL"
] | null | null | null |
package org.alivepdf.transitions
{
public final class Dimension
{
public static const HORIZONTAL:String = "H";
public static const VERTICAL:String = "V";
}
}
| 21.75
| 47
| 0.689655
|
3d04bc068245db095111355004c4690812be25c5
| 1,507
|
as
|
ActionScript
|
swf/visuals/ui/base/SymbolIconButtonMessageDeleteGeneric.as
|
lukastechhonda/BigBangEmpireBot
|
5d5666c9d06111dc079f61b6038e2338d21fc8a7
|
[
"MIT"
] | 1
|
2019-10-31T13:49:58.000Z
|
2019-10-31T13:49:58.000Z
|
swf/visuals/ui/base/SymbolIconButtonMessageDeleteGeneric.as
|
lukastechhonda/BigBangEmpireBot
|
5d5666c9d06111dc079f61b6038e2338d21fc8a7
|
[
"MIT"
] | 11
|
2018-09-30T15:17:00.000Z
|
2022-02-13T11:52:26.000Z
|
swf/visuals/ui/base/SymbolIconButtonMessageDeleteGeneric.as
|
Zweer/BigBangEmpireBot
|
d0fd04118822bf0eb6fffd271ce944f0475c5998
|
[
"MIT"
] | 6
|
2018-06-18T18:43:46.000Z
|
2021-03-03T21:48:43.000Z
|
package visuals.ui.base
{
import com.playata.framework.display.Sprite;
import com.playata.framework.display.lib.flash.FlashDisplayObjectContainer;
import com.playata.framework.display.lib.flash.FlashSprite;
import flash.display.MovieClip;
import visuals.ui.elements.backgrounds.SymbolSlice9BackgroundButtonGeneric;
public class SymbolIconButtonMessageDeleteGeneric extends Sprite
{
private var _nativeObject:SymbolIconButtonMessageDelete = null;
public var bg:SymbolSlice9BackgroundButtonGeneric = null;
public function SymbolIconButtonMessageDeleteGeneric(param1:MovieClip = null)
{
if(param1)
{
_nativeObject = param1 as SymbolIconButtonMessageDelete;
}
else
{
_nativeObject = new SymbolIconButtonMessageDelete();
}
super(null,FlashSprite.fromNative(_nativeObject));
var _loc2_:FlashDisplayObjectContainer = _sprite as FlashDisplayObjectContainer;
bg = new SymbolSlice9BackgroundButtonGeneric(_nativeObject.bg);
}
public function setNativeInstance(param1:SymbolIconButtonMessageDelete) : void
{
FlashSprite.setNativeInstance(_sprite,param1);
_nativeObject = param1;
syncInstances();
}
public function syncInstances() : void
{
if(_nativeObject.bg)
{
bg.setNativeInstance(_nativeObject.bg);
}
}
}
}
| 31.395833
| 89
| 0.669542
|
3c81ff15b2a1c7831c39142cffbe0eadd2dbb6df
| 8,541
|
as
|
ActionScript
|
Source Flash/scripts/shop/ShopController.as
|
itspaiva/DDTank4.1
|
99d67ca8ad15851b8a37e9dddf2f3f9018c770e4
|
[
"MIT"
] | 4
|
2021-11-13T07:22:26.000Z
|
2022-02-21T20:38:53.000Z
|
Source Flash/scripts/shop/ShopController.as
|
itspaiva/DDTank4.1
|
99d67ca8ad15851b8a37e9dddf2f3f9018c770e4
|
[
"MIT"
] | null | null | null |
Source Flash/scripts/shop/ShopController.as
|
itspaiva/DDTank4.1
|
99d67ca8ad15851b8a37e9dddf2f3f9018c770e4
|
[
"MIT"
] | 7
|
2021-11-13T07:22:31.000Z
|
2022-02-15T07:08:09.000Z
|
package shop
{
import com.pickgliss.toplevel.StageReferance;
import com.pickgliss.ui.ComponentFactory;
import com.pickgliss.utils.ObjectUtils;
import ddt.data.EquipType;
import ddt.data.goods.ShopCarItemInfo;
import ddt.data.goods.ShopItemInfo;
import ddt.data.player.PlayerState;
import ddt.manager.ChatManager;
import ddt.manager.PlayerManager;
import ddt.manager.QQtipsManager;
import ddt.manager.SocketManager;
import ddt.states.BaseStateView;
import ddt.states.StateType;
import ddt.view.MainToolBar;
import ddt.view.chat.ChatBugleView;
import flash.display.Bitmap;
import flash.display.DisplayObject;
import flash.display.Sprite;
import shop.view.ShopLeftView;
import shop.view.ShopRankingView;
import shop.view.ShopRightView;
public class ShopController extends BaseStateView
{
private var _bg:Bitmap;
private var _leftView:ShopLeftView;
private var _view:Sprite;
private var _model:ShopModel;
private var _rightView:ShopRightView;
private var _rankingView:ShopRankingView;
public function ShopController()
{
super();
}
public function get leftView() : ShopLeftView
{
return this._leftView;
}
public function get rightView() : ShopRightView
{
return this._rightView;
}
public function get rankingView() : ShopRankingView
{
return this._rankingView;
}
public function addTempEquip(param1:ShopItemInfo) : Boolean
{
var _loc2_:Boolean = this._model.addTempEquip(param1);
this.showPanel(ShopLeftView.SHOW_DRESS);
return _loc2_;
}
public function addToCar(param1:ShopCarItemInfo) : Boolean
{
this._model.addToShoppingCar(param1);
if(this._model.isCarListMax())
{
return false;
}
return true;
}
public function buyItems(param1:Array, param2:Boolean, param3:String = "") : void
{
var _loc11_:ShopCarItemInfo = null;
var _loc4_:Array = new Array();
var _loc5_:Array = new Array();
var _loc6_:Array = new Array();
var _loc7_:Array = new Array();
var _loc8_:Array = new Array();
var _loc9_:Array = [];
var _loc10_:int = 0;
while(_loc10_ < param1.length)
{
_loc11_ = param1[_loc10_];
_loc4_.push(_loc11_.GoodsID);
_loc5_.push(_loc11_.currentBuyType);
_loc6_.push(_loc11_.Color);
_loc8_.push(_loc11_.place);
if(_loc11_.CategoryID == EquipType.FACE)
{
_loc9_.push(_loc11_.skin);
}
else
{
_loc9_.push("");
}
_loc7_.push(!!param2?_loc11_.dressing:false);
_loc10_++;
}
SocketManager.Instance.out.sendBuyGoods(_loc4_,_loc5_,_loc6_,_loc8_,_loc7_,_loc9_);
}
override public function dispose() : void
{
ObjectUtils.disposeAllChildren(this._view);
this._bg = null;
this._model = null;
this._leftView = null;
this._rightView = null;
this._rankingView = null;
MainToolBar.Instance.hide();
}
override public function enter(param1:BaseStateView, param2:Object = null) : void
{
super.enter(param1);
SocketManager.Instance.out.sendCurrentState(1);
SocketManager.Instance.out.sendUpdateGoodsCount();
ChatManager.Instance.state = ChatManager.CHAT_SHOP_STATE;
ChatBugleView.instance.hide();
PlayerManager.Instance.Self.playerState = new PlayerState(PlayerState.SHOPPING,PlayerState.AUTO);
SocketManager.Instance.out.sendFriendState(PlayerManager.Instance.Self.playerState.StateID);
this.init();
StageReferance.stage.focus = StageReferance.stage;
}
override public function getBackType() : String
{
return StateType.MAIN;
}
override public function getType() : String
{
return StateType.SHOP;
}
override public function getView() : DisplayObject
{
return this._view;
}
override public function leaving(param1:BaseStateView) : void
{
this.dispose();
PlayerManager.Instance.Self.Bag.unLockAll();
PlayerManager.Instance.Self.playerState = new PlayerState(PlayerState.ONLINE,PlayerState.AUTO);
SocketManager.Instance.out.sendFriendState(PlayerManager.Instance.Self.playerState.StateID);
super.leaving(param1);
}
public function loadList() : void
{
}
public function get model() : ShopModel
{
return this._model;
}
public function presentItems(param1:Array, param2:String, param3:String) : void
{
var _loc9_:ShopCarItemInfo = null;
var _loc4_:Array = new Array();
var _loc5_:Array = new Array();
var _loc6_:Array = new Array();
var _loc7_:Array = [];
var _loc8_:int = 0;
while(_loc8_ < param1.length)
{
_loc9_ = param1[_loc8_];
_loc4_.push(_loc9_.GoodsID);
_loc5_.push(_loc9_.currentBuyType);
_loc6_.push(_loc9_.Color);
if(_loc9_.CategoryID == EquipType.FACE)
{
_loc7_.push(this._model.currentModel.Skin);
}
else
{
_loc7_.push("");
}
_loc8_++;
}
SocketManager.Instance.out.sendPresentGoods(_loc4_,_loc5_,_loc6_,param2,param3,_loc7_);
}
public function removeFromCar(param1:ShopCarItemInfo) : void
{
this._model.removeFromShoppingCar(param1);
}
public function removeTempEquip(param1:ShopCarItemInfo) : void
{
this._model.removeTempEquip(param1);
}
public function restoreAllItemsOnBody() : void
{
this._model.restoreAllItemsOnBody();
}
public function revertToDefault() : void
{
this._model.revertToDefalt();
}
public function setFittingModel(param1:Boolean) : void
{
this._rightView.setCurrentSex(!!param1?int(1):int(2));
this._rightView.loadList();
this._model.fittingSex = param1;
this._leftView.adjustUpperView(ShopLeftView.SHOW_DRESS);
this._leftView.refreshCharater();
this._rankingView.loadList();
}
public function setSelectedEquip(param1:ShopCarItemInfo) : void
{
this._model.setSelectedEquip(param1);
}
public function showPanel(param1:uint) : void
{
this._leftView.adjustUpperView(param1);
}
public function updateCost() : void
{
this._model.updateCost();
}
private function init() : void
{
this._model = new ShopModel();
this._view = new Sprite();
this._rightView = ComponentFactory.Instance.creatCustomObject("shop.RightView");
this._leftView = ComponentFactory.Instance.creatCustomObject("shop.LeftView");
this._bg = ComponentFactory.Instance.creat("asset.shop.BgTitle");
this._rightView.setup(this);
this._leftView.setup(this,this._model);
this._view.addChild(this._bg);
this._view.addChild(this._leftView);
this._view.addChild(this._rightView);
MainToolBar.Instance.show();
MainToolBar.Instance.setShopState();
if(QQtipsManager.instance.isGotoShop)
{
QQtipsManager.instance.isGotoShop = false;
this._rightView.gotoPage(ShopRightView.TOP_RECOMMEND,QQtipsManager.instance.indexCurrentShop - 1);
}
else
{
this._rightView.gotoPage(ShopRightView.TOP_TYPE,ShopRightView.SUB_TYPE,ShopRightView.CURRENT_PAGE,ShopRightView.CURRENT_GENDER);
}
this._rankingView = ComponentFactory.Instance.creatCustomObject("shop.RankingView");
this._rankingView.setup(this);
this._view.addChild(this._rankingView);
if(!QQtipsManager.instance.isGotoShop)
{
this.setFittingModel(ShopRightView.CURRENT_GENDER == 1);
}
}
}
}
| 31.516605
| 140
| 0.603793
|
227ae734e10f822b8c28974e2520269298210431
| 1,807
|
as
|
ActionScript
|
sdk/samples/actionscript/FTE/src/FTEHelloWorld.as
|
isabella232/flex-tlf
|
e10a51adc5e91d21a34adc157e862b80a6071b0d
|
[
"Apache-2.0"
] | 18
|
2015-01-04T12:57:11.000Z
|
2021-11-10T15:53:57.000Z
|
sdk/samples/actionscript/FTE/src/FTEHelloWorld.as
|
apache/flex-tlf
|
e10a51adc5e91d21a34adc157e862b80a6071b0d
|
[
"Apache-2.0"
] | 1
|
2018-07-30T04:07:35.000Z
|
2018-07-30T04:07:35.000Z
|
sdk/samples/actionscript/FTE/src/FTEHelloWorld.as
|
isabella232/flex-tlf
|
e10a51adc5e91d21a34adc157e862b80a6071b0d
|
[
"Apache-2.0"
] | 22
|
2015-01-25T05:18:06.000Z
|
2021-11-10T15:53:50.000Z
|
////////////////////////////////////////////////////////////////////////////////
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////////
package
{
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.text.engine.ElementFormat;
import flash.text.engine.TextBlock;
import flash.text.engine.TextElement;
import flash.text.engine.TextLine;
/** Display Hello World using FTE APIs */
public class FTEHelloWorld extends Sprite
{
public function FTEHelloWorld()
{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
var elementFormat:ElementFormat = new ElementFormat();
elementFormat.fontSize = 48;
var textElement:TextElement = new TextElement("Hello, world", elementFormat)
var textBlock:TextBlock = new TextBlock(textElement);
var textLine:TextLine = textBlock.createTextLine();
textLine.y = textLine.ascent;
addChild(textLine);
}
}
}
| 37.645833
| 80
| 0.683453
|
1f27b55f7d020cd2419fa135e5fc74712b25c735
| 11,743
|
as
|
ActionScript
|
Assets.as
|
saktamashmsheni/src
|
dd8653964ece271e6aabc34104f76c0ef4efeeb7
|
[
"Apache-2.0"
] | null | null | null |
Assets.as
|
saktamashmsheni/src
|
dd8653964ece271e6aabc34104f76c0ef4efeeb7
|
[
"Apache-2.0"
] | null | null | null |
Assets.as
|
saktamashmsheni/src
|
dd8653964ece271e6aabc34104f76c0ef4efeeb7
|
[
"Apache-2.0"
] | null | null | null |
package {
import flash.display.Bitmap;
import flash.system.ApplicationDomain;
import flash.utils.Dictionary;
import flash.utils.getDefinitionByName;
import flash.utils.getQualifiedClassName;
import starling.text.BitmapFont;
import starling.text.TextField;
import starling.textures.Texture;
import starling.textures.TextureAtlas;
public class Assets {
public static var gameBg:Class;
public static var machineBg:Class;
public static var slot_icons_bg:Class;
//footer
public static var footerSheet:Class;
public static var footerSheetXml:Class;
public static var doubleSheet:Class;
public static var doubleSheetXml:Class;
//header
public static var headerSheet:Class;
public static var headerSheetXml:Class;
//header
public static var logo:Class;
public static var logoXml:Class;
//lightFrame
public static var lightFrame:Class;
public static var lightFrameXml:Class;
//cards
public static var cardsSheet:Class;
public static var cardsSheetXml:Class;
//cards
public static var historyCards:Class;
public static var historyCardsXml:Class;
//line
public static var lineButtons:Class;
public static var lineButtonsXml:Class;
public static var lines:Class;
public static var linesXml:Class;
public static var iconFrames:Class;
public static var iconFramesXml:Class;
//4 way jackpot
public static var fourJackpotSheet:Class;
public static var fourJackpotSheetXml:Class;
//bonus statuses
//public static var bonusStatusSheet:Class;
//public static var bonusStatusSheetXml:Class;
//----fonts
//avit next bold
//avir next bold
//public static var avirBlackBitmap_bitmapFont:Class;
//public static var avirBlackBitmap_bitmapFontXml:Class;
//perpetua
//public static var PerpetuaFont:Class;
//public static var PerpetuaFontXml:Class;
//perpetua Bold
public static var PerpetuaBold:Class;
public static var PerpetuaBoldXml:Class;
//Playbill
//public static var Playbill:Class;
//public static var PlaybillXml:Class;
//Playbill
public static var bebas:Class;
public static var bebasXml:Class;
//IRON
//public static var IRON:Class;
//public static var IRONXml:Class;
//bpg gel
//public static var BpgGel:Class;
//public static var BpgGelXml:Class;
//dejavu sans
public static var dejavuSans:Class;
public static var dejavuSansXml:Class;
//nuevaStd
//public static var nuevaStd:Class;
//public static var nuevaStdXml:Class;
//exrounded
public static var exRounded:Class;
public static var exRoundedXml:Class;
//public static var notifiLoseBonusGame:Class;
//public static var notifiLoseBonusGameXml:Class;
public static var bpgGELDejaVuSerifCaps_bitmapFont:Class;
public static var bpgGELDejaVuSerifCaps_bitmapFontXml:Class;
//---------paytable
//backgrounds
public static var payTableLoaded:Boolean = false;
public static var paytableBg1:Class;
public static var paytableBg2:Class;
public static var paytableBg3:Class;
public static var paytableBg4:Class;
public static var paytableBg5:Class;
public static var paytableBg6:Class;
//buttons
public static var paytableAssetsImg:Class;
public static var paytableAssetsXml:Class;
//error box
//error
public static var errorSheet:Class;
public static var errorSheetXml:Class;
//-----------jackpot WIn--------------
public static var JackpotWinLoaded:Boolean = false;
//buttons
public static var jackpotWinAssetsImg:Class;
public static var jackpotWinAssetsXml:Class;
//loader
public static var loaderSheet:Class;
public static var loaderSheetXml:Class;
/*public static var freeSpinsStatusSheet:Class;
public static var freeSpinsStatusSheetXml:Class;*/
//leaderBoard
public static var freeSpinsSheet:Class;
public static var freeSpinsSheetXml:Class;
//scatter win Bg
//public static var scatterWinBg:Class;
//-----bonus------
public static var BonusLoaded:Boolean = false;
//begemoti animation
//public static var begemotianimation:Class;
//public static var begemotianimationXml:Class;
public static var leaderboardSheet:Class;
public static var leaderboardSheetXml:Class;
/*public static var leader_me_bg:Class;
public static var leader_me_bgXml:Class;*/
/*//wild selector
public static var wildSelectorSheet:Class;
public static var wildSelectorSheetXml:Class;*/
//wins pop
public static var winsPopAsset:Class;
public static var winsPopAssetXml:Class;
//big win
public static var bigWin:Class;
public static var starEffectSheet:Class;
public static var starEffectSheetXml:Class;
public static var BigWinsLoaded:Boolean = false;
//start info
public static var startJacpotInfoSheet:Class;
public static var startJacpotInfoSheetXml:Class;
//transfer btn
//public static var transferSheet:Class;
//public static var transferSheetXml:Class;
//icons
public static var allIconsImg:Class;
public static var allIconsXml:Class;
//public static var allWildSheet:Class;
//public static var allWildSheetXml:Class;
public static var iconsAnimationImg:Class;
public static var iconsAnimationXml:Class;
public static var icon0Img:Class;
public static var icon0Xml:Class;
public static var icon1Img:Class;
public static var icon1Xml:Class;
public static var icon2Img:Class;
public static var icon2Xml:Class;
public static var icon3Img:Class;
public static var icon3Xml:Class;
public static var icon4Img:Class;
public static var icon4Xml:Class;
public static var icon5Img:Class;
public static var icon5Xml:Class;
public static var icon6Img:Class;
public static var icon6Xml:Class;
public static var icon7Img:Class;
public static var icon7Xml:Class;
public static var icon8Img:Class;
public static var icon8Xml:Class;
public static var icon9Img:Class;
public static var icon9Xml:Class;
public static var icon10Img:Class;
public static var icon10Xml:Class;
public static var icon11Img:Class;
public static var icon11Xml:Class;
public static var icon12Img:Class;
public static var icon12Xml:Class;
public static var staticAnim:Class;
public static var staticAnimXml:Class;
//leaderboard fonts
//static public var bpg_arial_v1:Class;
//static public var bpg_arial_v1Xml:Class;
//static public var myriad_pro_bold_v1:Class;
//static public var myriad_pro_bold_v1Xml:Class;
//static public var bpg_arial_caps_12:Class;
//static public var bpg_arial_caps_12Xml:Class;
static public var bpg_gel_dejavu_serif_22:Class;
static public var bpg_gel_dejavu_serif_22Xml:Class;
static public var roboto_slab_bold_23:Class;
static public var roboto_slab_bold_23Xml:Class;
static public var roboto_slab_bold_timer_22:Class;
static public var roboto_slab_bold_timer_22Xml:Class;
static public var roboto_slab_bold_prizes:Class;
static public var roboto_slab_bold_prizesXml:Class;
static public var bpg_gel_dejavu_serif_white:Class;
static public var bpg_gel_dejavu_serif_whiteXml:Class;
static public var roboto_slab_bold_top:Class;
static public var roboto_slab_bold_topXml:Class;
static public var bpg_gel_dejavu_serif_black:Class;
static public var bpg_gel_dejavu_serif_blackXml:Class;
static public var roboto_slab_bold_top_black:Class;
static public var roboto_slab_bold_top_blackXml:Class;
static public var bpg_gel_dejavu_serif_22_yellow:Class;
static public var bpg_gel_dejavu_serif_22_yellowXml:Class;
//footer fonts
public static var SPIN_FONT:Class;
public static var SPIN_FONTXml:Class;
public static var auto_spin_font:Class;
public static var auto_spin_fontXml:Class;
public static var balance_bfont:Class;
public static var balance_bfontXml:Class;
public static var win_bfont:Class;
public static var win_bfontXml:Class;
//machine fonts
public static var line_buttons_font:Class;
public static var line_buttons_fontXml:Class;
public static var line_off_btn_bfont:Class;
public static var line_off_btn_bfontXml:Class;
public static var line_on_btn_bfont:Class;
public static var line_on_btn_bfontXml:Class;
//double fonts
public static var double_roboto_bold:Class;
public static var double_roboto_boldXml:Class;
public static var double_roboto_bold_nums:Class;
public static var double_roboto_bold_numsXml:Class;
//cashier fonts
public static var transfer_Font:Class;
public static var transfer_FontXml:Class;
//jackpotFont
public static var jackpotFont:Class;
public static var jackpotFontXml:Class;
//win animation fonts
static public var winsPop_bfont:Class;
static public var winsPop_bfontXml:Class;
//free spin fonts
//free spins
public static var free_spin_win:Class;
public static var free_spin_winXml:Class;
public static var mainSlot:Class;
public static var mainSlotXml:Class;
//multiple wins
public static var xWinsSheet:Class;
public static var xWinsSheetXml:Class;
//sideAnim
public static var sideAnim1:Class;
public static var sideAnim1Xml:Class;
public static var sideAnim2:Class;
public static var sideAnim2Xml:Class;
public static var sideAnim3:Class;
public static var sideAnim3Xml:Class;
//-----------adjara spins--------------
public static var adjaraSpinsLoaded:Boolean = false;
public static var adjaraSpinsSheet:Class;
public static var adjaraSpinsSheetXml:Class;
public static var adjara_spin_count_font:Class;
public static var adjara_spin_count_fontXml:Class;
private static var gameTexturesDic:Dictionary = new Dictionary();
private static var gameTextureAtlassDic:Dictionary = new Dictionary();
private static var gameFontsAtlassDic:Dictionary = new Dictionary();
public static function getFont(fontName:String):BitmapFont {
if (gameFontsAtlassDic[fontName] == null) {
var imgClass:Class = Assets[fontName];
var xmlClass:Class = Assets[fontName + "Xml"];
//var imgClass:Class = getDefinitionByName('Assets_' + fontName) as Class;
//var xmlClass:Class = getDefinitionByName('Assets_' + fo`ntName + "Xml") as Class;
var fontTexture:Texture = Texture.fromBitmap(new imgClass());
var fontXML:XML = XML(new xmlClass());
gameFontsAtlassDic[fontName] = new BitmapFont(fontTexture, fontXML);
TextField.registerCompositor(gameFontsAtlassDic[fontName],gameFontsAtlassDic[fontName].name);
}
return gameFontsAtlassDic[fontName];
}
public static function getAtlas(imgStr:String, imgXmlStr:String):TextureAtlas {
if (gameTextureAtlassDic[imgStr] == null) {
//var ClassReference:Class = getDefinitionByName('ItemsLib_' + imgXmlStr) as Class;
var ClassReference:Class = Assets[imgXmlStr];
var texture:Texture = getTexture(imgStr);
var xml:XML = XML(new ClassReference);
//Tracer._log(xml);
gameTextureAtlassDic[imgStr] = new TextureAtlas(texture, xml);
}
return gameTextureAtlassDic[imgStr];
}
public static function getTexture(name:String, deleteTexture:Boolean = false):Texture {
if (gameTexturesDic[name] == undefined) {
var bitmap:Bitmap = new Assets[name]();
gameTexturesDic[name] = Texture.fromBitmap(bitmap);
}
return gameTexturesDic[name];
}
public static function disposeAtlasItem(str:String):void {
if (gameTextureAtlassDic[str] != null) {
gameTextureAtlassDic[str].dispose();
gameTextureAtlassDic[str] = null;
delete gameTextureAtlassDic[str];
}
}
public static function disposeTextureItem(str:String):void {
if (gameTexturesDic[str] != null) {
gameTexturesDic[str].dispose();
gameTexturesDic[str] = null
delete gameTexturesDic[str];
}
}
}
}
| 31.482574
| 97
| 0.75875
|
64e6477cf69dc96a62be20b3e8d84418d56ec003
| 5,104
|
as
|
ActionScript
|
efd/Cartographer/lib/sys/config/Versioning.as
|
Earthfiredrake/SWL-Cartographer
|
e245287730d01a95ed908ac26c30fcc10b807802
|
[
"SWL",
"MIT"
] | 1
|
2021-06-10T22:23:28.000Z
|
2021-06-10T22:23:28.000Z
|
efd/Cartographer/lib/sys/config/Versioning.as
|
Earthfiredrake/SWL-Cartographer
|
e245287730d01a95ed908ac26c30fcc10b807802
|
[
"SWL",
"MIT"
] | null | null | null |
efd/Cartographer/lib/sys/config/Versioning.as
|
Earthfiredrake/SWL-Cartographer
|
e245287730d01a95ed908ac26c30fcc10b807802
|
[
"SWL",
"MIT"
] | null | null | null |
// Copyright 2018, Earthfiredrake
// Released under the terms of the MIT License
// https://github.com/Earthfiredrake/SWL-FrameworkMod
// Config subsystem component for mod and framework versioning and upgrades
// Handles framework setting migrations, and requests migration from mod if needed
import flash.geom.Point; // DEPRECATED(v1.0.0): Temporary upgrade support
import com.GameInterface.DistributedValue; // DEPRECATED(v1.0.0): Temporary upgrade support
// Mod namespace qualified imports and class definition are #included from locally overriden file
#include "Versioning.lcl.as"
public function Versioning(mod:Mod, initObj:Object) {
ModObj = mod;
Config = mod.Config;
MinUpgradableVersion = initObj.MinUpgradableVersion ? initObj.MinUpgradableVersion : "0.0.0";
LibUpgrades = initObj.LibUpgrades;
Config.NewSetting("Installed", false); // Will always be saved as true, only remains false if settings do not exist
Config.NewSetting("Version", mod.Version);
}
/// Versioning and Upgrades
public function UpdateInstall():Void {
Config.ChangeDefault("Installed", true);
if (!Config.GetValue("Installed")) {
// Fresh install, use the actual default value instead of the update placeholder
Config.ResetValue("TopbarIntegration"); // DEPRECATED(v1.0.0): Temporary upgrade support
ModObj.InstallMod(); // Mod specific install behaviour
Config.SetValue("Installed", true);
Mod.ChatMsg(LocaleManager.GetString("General", "Installed"));
Mod.ChatMsg(LocaleManager.GetString("General", "ReviewSettings"), { noPrefix : true });
// Decided against having the options menu auto open here
// Users might not realize that it's a one off event
return; // No existing version to update
}
var oldVersion:String = Config.GetValue("Version");
var newVersion:String = Config.GetDefault("Version");
var versionChange:Number = CompareVersions(newVersion, oldVersion);
if (versionChange != 0) { // The version changed, either updated or reverted
if (versionChange > 0) {
// Verify upgrade restrictions
if (CompareVersions(MinUpgradableVersion, oldVersion) > 0) {
Mod.ChatMsg(LocaleManager.FormatString("General", "NoMigration", oldVersion));
Config.ResetAll();
} else {
for (var i:Number = 0; i < LibUpgrades.length; ++i) {
if (CompareVersions(LibUpgrades[i].mod, oldVersion) >= 0) {
UpdateLib(LibUpgrades[i].lib); // Library updates
break;
}
}
ModObj.UpdateMod(newVersion, oldVersion); // Mod specific updates
}
}
// Reset the version number to the new version
Config.ResetValue("Version");
Mod.ChatMsg(LocaleManager.FormatString("General", versionChange > 0 ? "Update" : "Revert", newVersion));
Mod.ChatMsg(LocaleManager.GetString("General", "ReviewSettings"), { noPrefix : true });
}
}
private function UpdateLib(oldVersion:String):Void {
// v1.1: changes how GUIResolutionScale is used, and adjusts saved ui locations to compensate
if (CompareVersions("1.1.0", oldVersion) > 0) {
var scale:Number = DistributedValue.GetDValue("GUIResolutionScale");
if (Config.HasSetting("InterfaceWindowPosition")) {
var pos:Point = Config.GetValue("InterfaceWindowPosition");
Config.SetValue("InterfaceWindowPosition", new Point(pos.x * scale, pos.y * scale));
}
if (Config.HasSetting("ConfigWindowPosition")) {
var pos:Point = Config.GetValue("ConfigWindowPosition");
Config.SetValue("ConfigWindowPosition", new Point(pos.x * scale, pos.y * scale));
}
if (Config.HasSetting("IconPosition")) {
// Either a Point or a Number
var pos = Config.GetValue("IconPosition");
Config.SetValue("IconPosition", Config.GetValue("TopbarIntegration") ? pos * scale : new Point(pos.x * scale, pos.y * scale));
}
}
}
// Compares two version strings (format "#.#.#[.alpha|.beta]")
// Return value encodes the field at which they differ (1: major, 2: minor, 3: build, 4: prerelease tag)
// If positive, then the first version is higher, negative means first version was lower
// A return of 0 indicates that the versions were the same
public static function CompareVersions(firstVer:String, secondVer:String):Number {
var first:Array = firstVer.split(".");
var second:Array = secondVer.split(".");
for (var i = 0; i < Math.min(first.length, second.length); ++i) {
if (first[i] != second[i]) {
if (i < 3) {
return Number(first[i]) < Number(second[i]) ? -(i + 1) : i + 1;
} else {
// One's alpha and the other is beta, all other values the same
return first[i] == "alpha" ? -4 : 4;
}
}
}
// Version number is the same, but one may still have a pre-release tag
if (first.length != second.length) {
return first.length > second.length ? -4 : 4;
}
return 0;
}
private var ModObj:Mod;
private var Config:Object; // Local copy of ModObj.Config; Ducktyped ConfigWrapper
private var MinUpgradableVersion:String; // Minimum installed version allowing setting migration during update
private var LibUpgrades:Array; // List of library version upgrades as {mod:version, lib:version} pairs
}
| 44.77193
| 131
| 0.709639
|
d1b56e468e4fd674403cbae1a6479f0816777508
| 4,845
|
as
|
ActionScript
|
src/com/lorentz/SVG/utils/ArcUtils.as
|
santi8ago8/GameAS3
|
28faea9f274a3f0a8fa0f3535d89d673d43aaaa3
|
[
"MIT"
] | 1
|
2019-07-14T09:28:26.000Z
|
2019-07-14T09:28:26.000Z
|
src/com/lorentz/SVG/utils/ArcUtils.as
|
bobliaos/CetusEditor
|
5883620809cba5ef384cfd966a6beecf18ede559
|
[
"MIT"
] | null | null | null |
src/com/lorentz/SVG/utils/ArcUtils.as
|
bobliaos/CetusEditor
|
5883620809cba5ef384cfd966a6beecf18ede559
|
[
"MIT"
] | null | null | null |
package com.lorentz.SVG.utils
{
import flash.geom.Point;
public class ArcUtils
{
/**
* Function from degrafa
* com.degrafa.geometry.utilities.ArcUtils
**/
public static function computeSvgArc(rx:Number, ry:Number,angle:Number,largeArcFlag:Boolean,sweepFlag:Boolean,
x:Number,y:Number,LastPointX:Number, LastPointY:Number):Object {
//store before we do anything with it
var xAxisRotation:Number = angle;
// Compute the half distance between the current and the final point
var dx2:Number = (LastPointX - x) / 2.0;
var dy2:Number = (LastPointY - y) / 2.0;
// Convert angle from degrees to radians
angle = MathUtils.degressToRadius(angle);
var cosAngle:Number = Math.cos(angle);
var sinAngle:Number = Math.sin(angle);
//Compute (x1, y1)
var x1:Number = (cosAngle * dx2 + sinAngle * dy2);
var y1:Number = (-sinAngle * dx2 + cosAngle * dy2);
// Ensure radii are large enough
rx = Math.abs(rx);
ry = Math.abs(ry);
var Prx:Number = rx * rx;
var Pry:Number = ry * ry;
var Px1:Number = x1 * x1;
var Py1:Number = y1 * y1;
// check that radii are large enough
var radiiCheck:Number = Px1/Prx + Py1/Pry;
if (radiiCheck > 1) {
rx = Math.sqrt(radiiCheck) * rx;
ry = Math.sqrt(radiiCheck) * ry;
Prx = rx * rx;
Pry = ry * ry;
}
//Compute (cx1, cy1)
var sign:Number = (largeArcFlag == sweepFlag) ? -1 : 1;
var sq:Number = ((Prx*Pry)-(Prx*Py1)-(Pry*Px1)) / ((Prx*Py1)+(Pry*Px1));
sq = (sq < 0) ? 0 : sq;
var coef:Number = (sign * Math.sqrt(sq));
var cx1:Number = coef * ((rx * y1) / ry);
var cy1:Number = coef * -((ry * x1) / rx);
//Compute (cx, cy) from (cx1, cy1)
var sx2:Number = (LastPointX + x) / 2.0;
var sy2:Number = (LastPointY + y) / 2.0;
var cx:Number = sx2 + (cosAngle * cx1 - sinAngle * cy1);
var cy:Number = sy2 + (sinAngle * cx1 + cosAngle * cy1);
//Compute the angleStart (angle1) and the angleExtent (dangle)
var ux:Number = (x1 - cx1) / rx;
var uy:Number = (y1 - cy1) / ry;
var vx:Number = (-x1 - cx1) / rx;
var vy:Number = (-y1 - cy1) / ry;
var p:Number
var n:Number
//Compute the angle start
n = Math.sqrt((ux * ux) + (uy * uy));
p = ux;
sign = (uy < 0) ? -1.0 : 1.0;
var angleStart:Number = MathUtils.radiusToDegress(sign * Math.acos(p / n));
// Compute the angle extent
n = Math.sqrt((ux * ux + uy * uy) * (vx * vx + vy * vy));
p = ux * vx + uy * vy;
sign = (ux * vy - uy * vx < 0) ? -1.0 : 1.0;
var angleExtent:Number = MathUtils.radiusToDegress(sign * Math.acos(p / n));
if(!sweepFlag && angleExtent > 0)
{
angleExtent -= 360;
}
else if (sweepFlag && angleExtent < 0)
{
angleExtent += 360;
}
angleExtent %= 360;
angleStart %= 360;
return Object({x:LastPointX,y:LastPointY,startAngle:angleStart,arc:angleExtent,radius:rx,yRadius:ry,xAxisRotation:xAxisRotation, cx:cx,cy:cy});
}
public static function convertToCurves(x:Number, y:Number, startAngle:Number, arcAngle:Number, xRadius:Number, yRadius:Number, xAxisRotation:Number=0):Array
{
var curves:Array = [];
// Circumvent drawing more than is needed
if (Math.abs(arcAngle)>360)
{
arcAngle = 360;
}
// Draw in a maximum of 45 degree segments. First we calculate how many
// segments are needed for our arc.
var segs:Number = Math.ceil(Math.abs(arcAngle)/45);
// Now calculate the sweep of each segment
var segAngle:Number = arcAngle/segs;
var theta:Number = MathUtils.degressToRadius(segAngle);
var angle:Number = MathUtils.degressToRadius(startAngle);
// Draw as 45 degree segments
if (segs>0)
{
var beta:Number = MathUtils.degressToRadius(xAxisRotation);
var sinbeta:Number = Math.sin(beta);
var cosbeta:Number = Math.cos(beta);
var cx:Number;
var cy:Number;
var x1:Number;
var y1:Number;
// Loop for drawing arc segments
for (var i:int = 0; i<segs; i++)
{
angle += theta;
var sinangle:Number = Math.sin(angle-(theta/2));
var cosangle:Number = Math.cos(angle-(theta/2));
var div:Number = Math.cos(theta/2);
cx= x + (xRadius * cosangle * cosbeta - yRadius * sinangle * sinbeta)/div; //Why divide by Math.cos(theta/2)?
cy= y + (xRadius * cosangle * sinbeta + yRadius * sinangle * cosbeta)/div; //Why divide by Math.cos(theta/2)?
sinangle = Math.sin(angle);
cosangle = Math.cos(angle);
x1 = x + (xRadius * cosangle * cosbeta - yRadius * sinangle * sinbeta);
y1 = y + (xRadius * cosangle * sinbeta + yRadius * sinangle * cosbeta);
curves.push( { s: new Point(x, y), c: new Point(cx, cy), p: new Point(x1, y1) } );
}
}
return curves;
}
}
}
| 30.859873
| 158
| 0.604954
|
bfff5c7f227f5c0c67d6b4b44cce161bf0d937b1
| 2,087
|
as
|
ActionScript
|
src/sabelas/systems/MotionControlSystem.as
|
abiyasa/they-were-11-clones
|
3e14d5583cac044748bb00b5a2094eca050b1255
|
[
"MIT"
] | 3
|
2015-06-19T07:10:07.000Z
|
2021-06-11T14:56:39.000Z
|
src/sabelas/systems/MotionControlSystem.as
|
abiyasa/they-were-11-clones
|
3e14d5583cac044748bb00b5a2094eca050b1255
|
[
"MIT"
] | null | null | null |
src/sabelas/systems/MotionControlSystem.as
|
abiyasa/they-were-11-clones
|
3e14d5583cac044748bb00b5a2094eca050b1255
|
[
"MIT"
] | 1
|
2016-02-10T14:56:53.000Z
|
2016-02-10T14:56:53.000Z
|
package sabelas.systems
{
import sabelas.components.Motion;
import sabelas.components.MotionControl;
import sabelas.nodes.MotionControlNode;
import sabelas.input.KeyPoll;
import ash.tools.ListIteratingSystem;
/**
* System for updating object motion data based on
* motion control (keyboard/input controlled)
*
* @author Abiyasa
*/
public class MotionControlSystem extends ListIteratingSystem
{
private var _keyPoll:KeyPoll;
public function MotionControlSystem(keyPoll:KeyPoll)
{
super(MotionControlNode, updateNode);
_keyPoll = keyPoll;
}
private function updateNode(node:MotionControlNode, time:Number):void
{
var control:MotionControl = node.control;
var motion:Motion = node.motion;
// horizontal movement
var angle:Number;
if (_keyPoll.isDown(control.keyMoveLeft))
{
// vertical movement
if (_keyPoll.isDown(control.keyMoveUp))
{
angle = -Math.PI * 0.25;
}
else if (_keyPoll.isDown(control.keyMoveDown))
{
angle = -Math.PI * 0.75;
}
else
{
angle = -Math.PI * 0.5;
}
// TODO rotate object facing the direction
motion.angle = angle;
motion.speed = motion.maxSpeed;
}
else if (_keyPoll.isDown(control.keyMoveRight))
{
// vertical movement
if (_keyPoll.isDown(control.keyMoveUp))
{
angle = Math.PI * 0.25;
}
else if (_keyPoll.isDown(control.keyMoveDown))
{
angle = Math.PI * 0.75;
}
else
{
angle = Math.PI * 0.5;
}
// TODO rotate object facing the direction
motion.angle = angle;
motion.speed = motion.maxSpeed;
}
else
{
// vertical movement
if (_keyPoll.isDown(control.keyMoveUp))
{
// TODO rotate object facing the direction
motion.angle = 0;
motion.speed = motion.maxSpeed;
}
else if (_keyPoll.isDown(control.keyMoveDown))
{
// TODO rotate object facing the direction
motion.angle = Math.PI;
motion.speed = motion.maxSpeed;
}
else // no movement
{
motion.speed = 0;
}
}
}
}
}
| 21.739583
| 71
| 0.643028
|
107074495b663ee53223792c8242cef8934e5781
| 18,092
|
as
|
ActionScript
|
library/src/com/mapgen/Generator.as
|
Mignari/mapshapegen
|
0ca6cc323905207c8b2260dc6af77bdd415c14ef
|
[
"MIT"
] | 7
|
2016-03-20T14:46:56.000Z
|
2022-03-10T16:43:44.000Z
|
library/src/com/mapgen/Generator.as
|
Mignari/mapshapegen
|
0ca6cc323905207c8b2260dc6af77bdd415c14ef
|
[
"MIT"
] | null | null | null |
library/src/com/mapgen/Generator.as
|
Mignari/mapshapegen
|
0ca6cc323905207c8b2260dc6af77bdd415c14ef
|
[
"MIT"
] | 11
|
2016-03-20T17:27:04.000Z
|
2022-02-20T00:40:42.000Z
|
// Draws the voronoi graph produced in Map.as
// Author: [email protected]
// Author: [email protected]
// License: MIT
package com.mapgen
{
import com.mapgen.graph.Center;
import com.mapgen.graph.Edge;
import com.mignari.errors.FileNotFoundError;
import com.mignari.errors.NullArgumentError;
import com.mignari.errors.NullOrEmptyArgumentError;
import com.mignari.signals.ProgressSignal;
import com.mignari.signals.Signal0;
import com.mignari.utils.Color;
import com.mignari.utils.StringUtil;
import com.mignari.utils.isNullOrEmpty;
import flash.display.BitmapData;
import flash.display.Graphics;
import flash.display.Shape;
import flash.display.Sprite;
import flash.filesystem.File;
import flash.filesystem.FileMode;
import flash.filesystem.FileStream;
import flash.geom.Point;
import flash.utils.ByteArray;
import mx.graphics.codec.PNGEncoder;
import otlib.map.Tile;
import otlib.otbm.OtbmWriter;
import otlib.otml.OTMLDocument;
public class Generator extends Sprite
{
//--------------------------------------------------------------------------
// PROPERTIES
//--------------------------------------------------------------------------
private var m_name:String;
private var m_width:uint;
private var m_height:uint;
private var m_islandSeed:String;
private var m_islandType:String;
private var m_pointType:String;
private var m_mask:Shape;
private var m_beachLayer:Shape;
private var m_riversLayer:Shape;
private var m_map:Map;
private var m_noisyEdges:NoisyEdges;
private var m_created:Boolean;
private var m_saving:Boolean;
private var m_changedSignal:Signal0;
private var m_progressSignal:ProgressSignal;
//--------------------------------------
// Getters / Setters
//--------------------------------------
public function get created():Boolean { return m_created; }
public function get changed():Boolean { return false; }
public function get saving():Boolean { return m_saving; }
public function get islandSeed():String { return m_islandSeed; }
public function get islandType():String { return m_islandType; }
public function get pointType():String { return m_pointType; }
public function get beach():Boolean { return m_beachLayer.visible; }
public function get rivers():Boolean { return m_riversLayer.visible; }
public function get onChanged():Signal0 { return m_changedSignal; }
public function get onProgress():ProgressSignal { return m_progressSignal; }
override public function get name():String { return m_name; }
override public function get width():Number { return m_width; }
override public function get height():Number { return m_height; }
//--------------------------------------------------------------------------
// CONSTRUCTOR
//--------------------------------------------------------------------------
public function Generator()
{
m_width = 512;
m_height = 512;
m_mask = new Shape();
m_map = new Map(m_width, m_height);
m_beachLayer = new Shape();
addChild(m_beachLayer);
m_riversLayer = new Shape();
addChild(m_riversLayer);
m_noisyEdges = new NoisyEdges();
m_changedSignal = new Signal0();
m_progressSignal = new ProgressSignal();
this.mask = m_mask;
}
//--------------------------------------------------------------------------
// METHODS
//--------------------------------------------------------------------------
//--------------------------------------
// Public
//--------------------------------------
public function load(file:File):void
{
if (!file)
{
throw new NullArgumentError("file");
}
if (!file.exists)
{
throw new FileNotFoundError(file);
}
if (file.extension != "otshape")
{
throw new ArgumentError("Invalid shape file extension.");
}
var doc:OTMLDocument = OTMLDocument.parse(file);
create(doc.readAt("name", String),
doc.readAt("width", uint),
doc.readAt("height", uint),
doc.readAt("seed", String),
doc.readAt("island-type", String),
doc.readAt("point-type", String),
doc.readAt("beach", Boolean),
doc.readAt("rivers", Boolean));
}
public function create(name:String,
width:uint,
height:uint,
seed:String,
islandType:String,
pointType:String,
beach:Boolean,
rivers:Boolean):void
{
if (isNullOrEmpty(name))
{
throw new NullOrEmptyArgumentError("name");
}
if (width == 0 || height == 0)
{
throw new ArgumentError("Invalid shape size.");
}
if (isNullOrEmpty(seed))
{
throw new NullOrEmptyArgumentError("seed");
}
if (isNullOrEmpty(islandType))
{
throw new NullOrEmptyArgumentError("islandType");
}
if (isNullOrEmpty(pointType))
{
throw new NullOrEmptyArgumentError("pointType");
}
m_name = name;
if (m_width != width ||
m_height != height ||
m_islandSeed != seed ||
m_islandType != islandType ||
m_pointType != pointType)
{
if (m_width != width || m_height != height)
{
m_width = width;
m_height = height;
m_map.setSize(width, height);
}
m_created = false;
m_islandSeed = seed;
m_islandType = islandType;
m_pointType = pointType;
var progressId:String = StringUtil.randomKeyString();
clear();
clearNoisyEdges();
m_beachLayer.graphics.clear();
m_riversLayer.graphics.clear();
drawMask();
m_progressSignal.dispatch(progressId, 0, 5, "Shaping map...");
shapeMap();
m_changedSignal.dispatch();
m_progressSignal.dispatch(progressId, 1, 5, "Placing points...");
m_map.placePoints();
m_changedSignal.dispatch();
m_progressSignal.dispatch(progressId, 2, 5, "Building graph...");
m_map.buildGraph();
m_map.assignBiomes();
m_changedSignal.dispatch();
m_progressSignal.dispatch(progressId, 3, 5, "Features...");
m_map.assignElevations();
m_map.assignMoisture();
m_map.assignBiomes();
m_changedSignal.dispatch();
m_progressSignal.dispatch(progressId, 4, 5, "Rivers...");
m_noisyEdges.buildNoisyEdges(m_map, m_map.mapRandom);
drawMap();
m_progressSignal.dispatch(progressId, 5, 5, "");
}
m_beachLayer.visible = beach;
m_riversLayer.visible = rivers;
m_created = true;
m_changedSignal.dispatch();
}
public function createBitmap():BitmapData
{
if (m_created)
{
var bitmap:BitmapData = new BitmapData(m_width, m_height, false, 0);
bitmap.draw(this);
return bitmap;
}
return null;
}
public function save(directory:File, water:uint, sand:uint, grass:uint, savePNG:Boolean = true, version:uint = 56):void
{
if (!directory)
{
throw new NullArgumentError("directory");
}
if (!directory.exists)
{
throw new FileNotFoundError(directory);
}
if (!m_created || m_saving)
{
throw new Error("Internal erro");
}
m_saving = true;
var bitmap:BitmapData = this.createBitmap();
var bytes:ByteArray = new PNGEncoder().encode(bitmap);
bytes.position = 0;
if (savePNG)
{
var pngFile:File = directory.resolvePath(m_name + ".png");
var stream:FileStream = new FileStream();
stream.open(pngFile, FileMode.WRITE);
stream.writeBytes(bytes, 0, bytes.bytesAvailable);
stream.close();
}
var color:Color = new Color();
var width:uint = bitmap.width;
var height:uint = bitmap.height;
var tiles:Vector.<Tile> = new Vector.<Tile>();
var value:uint = 0;
var total:uint = width * height;
var progressId:String = StringUtil.randomKeyString();
var label:String = "Creating map..."
var start:uint = 1024 - (width / 2);
for (var x:uint = 0; x < width; x++)
{
for (var y:uint = 0; y < height; y++)
{
var c:uint = bitmap.getPixel(x, y);
if (c != 0)
{
color.RGB = c;
var tile:Tile = new Tile(start + x, start + y, 7);
if (color.R == 0xFF)
{
tile.ground = sand;
}
else if (color.G == 0xCC)
{
tile.ground = grass;
}
else
{
tile.ground = water;
}
tiles[tiles.length] = tile;
}
value++;
if ((value % 100) == 0)
{
m_progressSignal.dispatch(progressId, value, total, label);
}
}
}
m_progressSignal.dispatch(progressId, total, total, label);
tiles.fixed = true;
var otbm:OtbmWriter = new OtbmWriter();
otbm.onProgress.add(m_progressSignal.dispatch);
otbm.saveOtbm(directory.resolvePath(m_name + ".otbm"), tiles, version, "Generated with MapShapeGen.");
var shapeFile:File = directory.resolvePath(m_name + ".otshape");
var otshape:OTMLDocument = new OTMLDocument();
otshape.tag = "Shape";
otshape.writeAt("name", m_name);
otshape.writeAt("width", m_width);
otshape.writeAt("height", m_height);
otshape.writeAt("seed", m_islandSeed);
otshape.writeAt("island-type", m_islandType);
otshape.writeAt("point-type", m_pointType);
otshape.writeAt("beach", m_beachLayer.visible);
otshape.writeAt("rivers", m_riversLayer.visible);
otshape.save(shapeFile);
otbm.onProgress.remove(m_progressSignal.dispatch);
m_saving = false;
}
//--------------------------------------
// Private
//--------------------------------------
// Random parameters governing the overall shape of the island
private function shapeMap():void
{
var seed:int = 0;
var variant:int = 0;
if (m_islandSeed.length == 0)
{
m_islandSeed = generateSeed();
}
var match:Object = /\s*(\d+)(?:\-(\d+))\s*$/.exec(m_islandSeed);
if (match != null)
{
// It's of the format SHAPE-VARIANT
seed = parseInt(match[1]);
variant = parseInt(match[2] || "0");
}
if (seed == 0)
{
// Convert the string into a number. This is a cheesy way to
// do it but it doesn't matter. It just allows people to use
// words as seeds.
var length:uint = m_islandSeed.length;
for (var i:int = 0; i < length; i++)
{
seed = (seed << 4) | m_islandSeed.charCodeAt(i);
}
seed %= 100000;
variant = 1 + Math.floor(9 * Math.random());
}
m_map.newIsland(m_islandType, m_pointType, seed, variant);
}
private function drawMap():void
{
this.clear();
this.renderPolygons();
this.renderRivers();
}
private function drawMask():void
{
m_mask.graphics.clear();
m_mask.graphics.beginFill(0x000000);
m_mask.graphics.drawRect(0, 0, m_width, m_height);
m_mask.graphics.endFill();
}
private function clearNoisyEdges():void
{
m_noisyEdges.clear();
}
private function clear():void
{
graphics.clear();
graphics.beginFill(0, 0);
graphics.drawRect(0, 0, 2000, 2000);
graphics.endFill();
graphics.beginFill(BiomeColor.WATER);
graphics.drawRect(0, 0, m_width, m_height);
graphics.endFill();
}
// Helper functions for rendering paths
private function drawPathForwards(graphics:Graphics, path:Vector.<Point>):void
{
for (var i:int = 0; i < path.length; i++)
{
graphics.lineTo(path[i].x, path[i].y);
}
}
private function drawPathBackwards(graphics:Graphics, path:Vector.<Point>):void
{
for (var i:int = path.length-1; i >= 0; i--)
{
graphics.lineTo(path[i].x, path[i].y);
}
}
public function renderRivers():void
{
var graphics:Graphics = m_riversLayer.graphics;
for each (var p:Center in m_map.centers)
{
for each (var r:Center in p.neighbors)
{
var edge:Edge = m_map.lookupEdgeFromCenter(p, r);
if (m_noisyEdges.path0[edge.index] != null &&
m_noisyEdges.path1[edge.index] != null &&
edge.river > 1 &&
edge.river < 50)
{
graphics.lineStyle(edge.river, BiomeColor.WATER);
graphics.moveTo(m_noisyEdges.path0[edge.index][0].x, m_noisyEdges.path0[edge.index][0].y);
drawPathForwards(graphics, m_noisyEdges.path0[edge.index]);
drawPathBackwards(graphics, m_noisyEdges.path1[edge.index]);
}
}
}
graphics.endFill();
}
public function renderPolygons():void
{
graphics.beginFill(BiomeColor.WATER);
graphics.drawRect(0, 0, m_width, m_height);
graphics.endFill();
for each (var p:Center in m_map.centers)
{
for each (var r:Center in p.neighbors)
{
var edge:Edge = m_map.lookupEdgeFromCenter(p, r);
if (m_noisyEdges.path0[edge.index] != null && m_noisyEdges.path1[edge.index] != null)
{
var color:uint = p.biome;
if (color == BiomeColor.SAND)
{
m_beachLayer.graphics.beginFill(color);
drawPath0(p, edge, m_beachLayer.graphics);
drawPath1(p, edge, m_beachLayer.graphics);
m_beachLayer.graphics.endFill();
color = BiomeColor.GRASS;
}
this.graphics.beginFill(color);
drawPath0(p, edge, this.graphics);
drawPath1(p, edge, this.graphics);
this.graphics.endFill();
}
}
}
}
private function drawPath0(center:Center, edge:Edge, graphics:Graphics):void
{
var path:Vector.<Point> = m_noisyEdges.path0[edge.index];
graphics.moveTo(center.point.x, center.point.y);
graphics.lineTo(path[0].x, path[0].y);
drawPathForwards(graphics, path);
graphics.lineTo(center.point.x, center.point.y);
}
private function drawPath1(center:Center, edge:Edge, graphics:Graphics):void
{
var path:Vector.<Point> = m_noisyEdges.path1[edge.index];
graphics.moveTo(center.point.x, center.point.y);
graphics.lineTo(path[0].x, path[0].y);
drawPathForwards(graphics, path);
graphics.lineTo(center.point.x, center.point.y);
}
//--------------------------------------------------------------------------
// STATIC
//--------------------------------------------------------------------------
static public function generateSeed():String
{
return int(Math.random() * 100000) + "-" + (1 + int(9 * Math.random()));
}
}
}
| 34.725528
| 127
| 0.473248
|
d1b4ba9939aab5799789d4c9f4e8c1623fe88fe1
| 1,100
|
as
|
ActionScript
|
flash/3.4/src/com/pubnub/Errors.as
|
goodybag/pubnub-api
|
7d37385f5dc58551c4e73674d35a26b0f239cc06
|
[
"MIT"
] | null | null | null |
flash/3.4/src/com/pubnub/Errors.as
|
goodybag/pubnub-api
|
7d37385f5dc58551c4e73674d35a26b0f239cc06
|
[
"MIT"
] | null | null | null |
flash/3.4/src/com/pubnub/Errors.as
|
goodybag/pubnub-api
|
7d37385f5dc58551c4e73674d35a26b0f239cc06
|
[
"MIT"
] | null | null | null |
package com.pubnub {
/**
* ...
* @author firsoff maxim, [email protected], icq : 235859730
*/
public class Errors {
public static const OPERATION_TIMEOUT:String = 'OPERATION_TIMEOUT';
public static const SYNC_CHANNEL_TIMEOUT:String = 'SYNC_CHANNEL_TIMEOUT';
public static const RECONNECT_HEARTBEAT_TIMEOUT:String = 'RECONNECT_HEARTBEAT_TIMEOUT';
static public const INIT_OPERATION_ERROR:String = "INIT_OPERATION_ERROR";
static public const ALREADY_CONNECTED:String = "ALREADY_CONNECTED";
static public const NOT_CONNECTED:String = "NOT_CONNECTED";
static public const SUBSCRIBE_INIT_ERROR:String = "SUBSCRIBE_INIT_ERROR";
static public const SUBSCRIBE_CHANNEL_ERROR:String = "SUBSCRIBE_CHANNEL_ERROR";
static public const NETWORK_RECONNECT_MAX_RETRIES_EXCEEDED:String = "NETWORK_RECONNECT_MAX_RETRIES_EXCEEDED";
static public const NETWORK_RECONNECT_MAX_TIMEOUT_EXCEEDED:String = "NETWORK_RECONNECT_MAX_TIMEOUT_EXCEEDED";
static public const NETWORK_UNAVAILABLE:String = "NETWORK_UNAVAILABLE";
static public const NETWORK_LOST:String = "NETWORK_LOST";
}
}
| 47.826087
| 111
| 0.806364
|
e6a2e6ba9d2911b1503309ac83f0a1c3f6901d76
| 4,810
|
as
|
ActionScript
|
3XMobile/src/framework/model/LoadStrategyProxy.as
|
602147629/3xGame
|
dbee66de2a3d50ab8165b6d1c18d37051de396ec
|
[
"MIT"
] | 1
|
2021-01-08T05:12:52.000Z
|
2021-01-08T05:12:52.000Z
|
3XMobile/src/framework/model/LoadStrategyProxy.as
|
602147629/3xGame
|
dbee66de2a3d50ab8165b6d1c18d37051de396ec
|
[
"MIT"
] | null | null | null |
3XMobile/src/framework/model/LoadStrategyProxy.as
|
602147629/3xGame
|
dbee66de2a3d50ab8165b6d1c18d37051de396ec
|
[
"MIT"
] | 1
|
2022-03-15T10:05:00.000Z
|
2022-03-15T10:05:00.000Z
|
package framework.model
{
import flash.utils.Dictionary;
import framework.fibre.patterns.Proxy;
import framework.resource.Resource;
import framework.resource.ResourceFactory;
import framework.resource.ResourceManager;
import framework.rpc.DataUtil;
import framework.util.rsv.Rsv;
import framework.util.rsv.RsvFile;
import framework.util.rsv.RsvGroup;
public class LoadStrategyProxy extends Proxy
{
public static const GROUP_SOUND_USED_IN_TUTORIAL:String = "SoundUsedInTutorial";
public static const GROUP_SOUND_LOAD_BEFORE_GAME:String = "SoundLoadBeforeGame";
public static const GROUP_SOUND_LOAD_IN_BACKGROUND:String = "SoundLoadInBackground";
public static const GROUP_SWF_USED_IN_TUTORIAL_ENVIRONMENT:String = "SwfUsedInTutorial_environment";
public static const GROUP_SWF_USED_IN_TUTORIAL_HOUSE:String = "SwfUsedInTutorial_house";
public static const GROUP_SWF_USED_IN_TUTORIAL_NPC:String = "SwfUsedInTutorial_npc";
public static const GROUP_SWF_USED_IN_TUTORIAL_OBSTACLE:String = "SwfUsedInTutorial_obstacle";
public static const GROUP_SWF_USED_IN_TUTORIAL_BUILDING:String = "SwfUsedInTutorial_building";
public static const GROUP_SWF_LOAD_IN_BACKGROUND:String = "SwfLoadInBackground";
private static const NAME:String = "LoadStrategyProxy";
public static var inst:LoadStrategyProxy;
private var _groups:Dictionary;
public function LoadStrategyProxy()
{
super(NAME);
inst = this;
_groups = new Dictionary();
}
public function initDemandedFile(file:RsvFile):void
{
var files:XMLList = file.xml.child("Groups");
for each(var xml:XML in files)
{
var groupId:String = xml.@id;
var filesLoad:Vector.<LoadStrategyFile> = queryStrategyGroup(groupId);
var fileGroup:XMLList = xml.elements("file");
for each(var fileXml:XML in fileGroup)
{
var fileLoad:LoadStrategyFile = new LoadStrategyFile(fileXml);
filesLoad.push(fileLoad);
}
}
}
private function queryStrategyGroup(groupId:String):Vector.<LoadStrategyFile>
{
var filesLoad:Vector.<LoadStrategyFile> = _groups[groupId] ;
if(filesLoad == null)
{
filesLoad = new Vector.<LoadStrategyFile>();
_groups[groupId] = filesLoad;
}
return filesLoad;
}
public function getGroupFiles(groupId:String):Vector.<RsvFile>
{
var rsvFiles:Vector.<RsvFile> = new Vector.<RsvFile>();
var files:Vector.<LoadStrategyFile> = queryStrategyGroup(groupId);
for each(var file:LoadStrategyFile in files)
{
var rsvFile:RsvFile;
var resourceId:String = file.getResourceId();
if(resourceId != "")
{
var res:Resource = ResourceManager.getInstance().getResource(resourceId);
rsvFile = res.file.referenceRsvFile;
}
else
{
var pathId:String = file.getId();
var classId:String = file.getClassId();
if(classId != "")
{
rsvFile = ResourceFactory.createRsvFileForSplitGroup(pathId, classId);
}
else
{
rsvFile = Rsv.getFile_s(pathId);
}
}
CONFIG::debug
{
ASSERT(rsvFile != null, "ASSERT");
}
rsvFiles.push(rsvFile);
}
return rsvFiles;
}
public function increasePriorityForGroup(groupId:String):void
{
CONFIG::debug
{
TRACE_LOADING("\n\n<<<< increase group id = " + groupId);
}
var totalSize:int = 0;
var group:RsvGroup = Rsv.getGroup_s(groupId);
var gourpFiles:Array = group.all();
for each(var rsv:RsvFile in gourpFiles)
{
TRACE_LOADING(rsv.id + ", size = " + rsv.fileSize);
totalSize += rsv.fileSize;
if(rsv.isWaitingDownload())
{
BackgroundLoadProxy.inst.increasePriorityToLoadingThread(rsv.id);
}
}
CONFIG::debug
{
TRACE_LOADING("total size = " + totalSize);
}
}
public function decreasePriorityForGroup(groupId:String):void
{
CONFIG::debug
{
TRACE_LOADING("\n<<<< decrease group id = " + groupId + "\n");
}
var totalSize:int = 0;
var group:RsvGroup = Rsv.getGroup_s(groupId);
var gourpFiles:Array = group.all();
for each(var rsv:RsvFile in gourpFiles)
{
BackgroundLoadProxy.inst.decreasePriorityToLoadingThread(rsv.id);
}
// var rsvFiles:Vector.<RsvFile> = getGroupFiles(groupId);
//
// for each(var rsvFile:RsvFile in rsvFiles)
// {
// BackgroundLoadProxy.inst.decreasePriorityToLoadingThread(rsvFile.id);
// }
}
public function startLoadSecondStuffGroupInBackground():void
{
DataUtil.instance.loadSecondGroupStartTime = new Date().getTime();
increasePriorityForGroup(FileProxy.SECOND_LOADING_GROUP_ID);
// increasePriorityForGroup(GROUP_SOUND_LOAD_IN_BACKGROUND);
// increasePriorityForGroup(GROUP_SWF_LOAD_IN_BACKGROUND);
}
}
}
| 26.428571
| 102
| 0.700208
|
1a229a4693cd774bbe1ebf005837d2a4a218d07e
| 2,046
|
as
|
ActionScript
|
node_modules/flex-sdk/lib/flex_sdk/frameworks/projects/advancedgrids/src/mx/controls/olapDataGridClasses/OLAPDataGridHeaderRendererProvider.as
|
guidoalloatti/zype_player
|
3ace80e8122cf09c22bc7971e48f360ce691f628
|
[
"Apache-2.0"
] | null | null | null |
node_modules/flex-sdk/lib/flex_sdk/frameworks/projects/advancedgrids/src/mx/controls/olapDataGridClasses/OLAPDataGridHeaderRendererProvider.as
|
guidoalloatti/zype_player
|
3ace80e8122cf09c22bc7971e48f360ce691f628
|
[
"Apache-2.0"
] | null | null | null |
node_modules/flex-sdk/lib/flex_sdk/frameworks/projects/advancedgrids/src/mx/controls/olapDataGridClasses/OLAPDataGridHeaderRendererProvider.as
|
guidoalloatti/zype_player
|
3ace80e8122cf09c22bc7971e48f360ce691f628
|
[
"Apache-2.0"
] | null | null | null |
////////////////////////////////////////////////////////////////////////////////
//
// ADOBE SYSTEMS INCORPORATED
// Copyright 2009 Adobe Systems Incorporated
// All Rights Reserved.
//
// NOTICE: Adobe permits you to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////
package mx.controls.olapDataGridClasses
{
/**
* The OLAPDataGridHeaderRendererProvider class lets you specify a
* custom header renderer for the columns in the OLAPDataGrid control.
*
* <p>To specify a custom header renderer to the OLAPDataGrid control,
* create your customer header renderer as a subclass of the OLAPDataGridHeaderRenderer class,
* create an instance of the OLAPDataGridHeaderRendererProvider,
* set the <code>OLAPDataGridHeaderRendererProvider.renderer</code> property to
* your customer header renderer, and
* then pass the OLAPDataGridHeaderRendererProvider instance to the OLAPDATAGrid control
* by setting the <code>OLAPDataGrid.headerRendererProviders</code> property.</p>
*
* @see mx.controls.OLAPDataGrid
* @see mx.controls.olapDataGridClasses.OLAPDataGridHeaderRenderer
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
public class OLAPDataGridHeaderRendererProvider extends OLAPDataGridRendererProvider
{
include "../../core/Version.as";
//--------------------------------------------------------------------------
//
// Properties
//
//--------------------------------------------------------------------------
//----------------------------------
// headerWordWrap
//----------------------------------
/**
* Set to <code>true</code> to wrap the text in the column header.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
public var headerWordWrap:*
}
}
| 34.1
| 95
| 0.576735
|
e8265962a5e49d00c13a6d638fdc80ca5cecbf41
| 449
|
as
|
ActionScript
|
PfApiTest/com/playfab/DataModels/FinalizeFileUploadsRequest.as
|
PlayFab/ActionScriptSDK
|
982e7844309d63c81d544bb136ff462f2fdf1141
|
[
"Apache-2.0"
] | 20
|
2015-05-01T09:09:41.000Z
|
2020-04-14T10:48:45.000Z
|
PfApiTest/com/playfab/DataModels/FinalizeFileUploadsRequest.as
|
PlayFab/ActionScriptSDK
|
982e7844309d63c81d544bb136ff462f2fdf1141
|
[
"Apache-2.0"
] | 20
|
2015-07-24T19:57:58.000Z
|
2015-11-14T00:59:55.000Z
|
PfApiTest/com/playfab/DataModels/FinalizeFileUploadsRequest.as
|
PlayFab/ActionScriptSDK
|
982e7844309d63c81d544bb136ff462f2fdf1141
|
[
"Apache-2.0"
] | 7
|
2015-05-06T06:59:14.000Z
|
2021-02-20T15:25:04.000Z
|
package com.playfab.DataModels
{
public class FinalizeFileUploadsRequest
{
public var Entity:EntityKey;
public var FileNames:Vector.<String>;
public function FinalizeFileUploadsRequest(data:Object=null)
{
if(data == null)
return;
Entity = new EntityKey(data.Entity);
FileNames = data.FileNames ? Vector.<String>(data.FileNames) : null;
}
}
}
| 23.631579
| 80
| 0.594655
|
6d51467d220d5bbb77ba23cf235a7ef9d064387f
| 12,269
|
as
|
ActionScript
|
src.framework/net/retrocade/retrocamel/display/global/RetrocamelTooltip.as
|
RetrocadeNet/galaxus
|
999cc99fa23ce1561e3069d757cba0e496bdeca5
|
[
"MIT"
] | null | null | null |
src.framework/net/retrocade/retrocamel/display/global/RetrocamelTooltip.as
|
RetrocadeNet/galaxus
|
999cc99fa23ce1561e3069d757cba0e496bdeca5
|
[
"MIT"
] | null | null | null |
src.framework/net/retrocade/retrocamel/display/global/RetrocamelTooltip.as
|
RetrocadeNet/galaxus
|
999cc99fa23ce1561e3069d757cba0e496bdeca5
|
[
"MIT"
] | null | null | null |
package net.retrocade.retrocamel.display.global {
import flash.display.BlendMode;
import flash.display.DisplayObject;
import flash.display.InteractiveObject;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.filters.DropShadowFilter;
import flash.utils.Dictionary;
import net.retrocade.retrocamel.core.RetrocamelCore;
import net.retrocade.retrocamel.core.RetrocamelDisplayManager;
import net.retrocade.retrocamel.core.retrocamel_int;
import net.retrocade.retrocamel.display.flash.RetrocamelBitmapText;
import net.retrocade.retrocamel.display.flash.RetrocamelGrid9;
import net.retrocade.retrocamel.display.flash.RetrocamelPreciseGrid9;
import net.retrocade.retrocamel.display.flash.RetrocamelTextField;
use namespace retrocamel_int;
/**
* ...
* @author Maurycy Zarzycki
*/
public class RetrocamelTooltip extends Sprite {
private static var self:RetrocamelTooltip;
private static var _hooksList:Dictionary = new Dictionary;
public static function init():void{
if (self){
throw new Error("RetrocamelTooltip is already initialized");
}
self = new RetrocamelTooltip();
RetrocamelDisplayManager._flashStage.addEventListener(Event.ENTER_FRAME, self.update);
RetrocamelDisplayManager._tooltip = self;
RetrocamelDisplayManager.flashApplication.addChild(self);
}
public static function hook(object:InteractiveObject, text:String, permanent:Boolean = false):void {
_hooksList[object] = text;
if (object.hasEventListener(MouseEvent.ROLL_OVER)) {
object.removeEventListener(MouseEvent.ROLL_OVER, _onHookOver);
}
if (object.hasEventListener(MouseEvent.ROLL_OUT)) {
object.removeEventListener(MouseEvent.ROLL_OUT, _onHookOut);
}
object.addEventListener(MouseEvent.ROLL_OVER, _onHookOver, false, 0, true);
object.addEventListener(MouseEvent.ROLL_OUT, _onHookOut, false, 0, true);
if (!permanent) {
object.addEventListener(Event.REMOVED_FROM_STAGE, _onHookRemove, false, 0, true);
}
}
public static function unhook(object:InteractiveObject):void {
delete _hooksList[object];
object.removeEventListener(MouseEvent.ROLL_OVER, _onHookOver);
object.removeEventListener(MouseEvent.ROLL_OUT, _onHookOut);
object.removeEventListener(Event.REMOVED_FROM_STAGE, _onHookRemove);
}
public static function hookToObject(object:*, text:String):void {
_hooksList[object] = text;
}
// ::::::::::::::::::::::::::::::::::::::::::::::
// :: Appearance
// ::::::::::::::::::::::::::::::::::::::::::::::
public static function setShadow(angle:Number = NaN, blur:Number = 4, distance:Number = 5, strength:Number = 1, alpha:Number = 1, color:Number = 0):void {
if (isNaN(angle)) {
self.filters = null;
}
else {
self.filters = [ new DropShadowFilter(distance, angle, color, alpha, blur, blur, strength) ];
}
}
public static function setPadding(top:int = 0, right:int = 0, bottom:int = 0, left:int = 0):void {
self._paddingTop = top;
self._paddingRight = right;
self._paddingBottom = bottom;
self._paddingLeft = left;
}
public static function setBackground(bg:*):void {
if (bg is RetrocamelGrid9) {
self.bgGrid(bg);
}
else if (bg is RetrocamelPreciseGrid9) {
self.bgPreciseGrid(bg);
}
else if (bg is String) {
if (!isNaN(parseInt(bg))) {
self.bgColor(parseInt(bg));
}
else {
self.bgGrid(RetrocamelGrid9.getGrid(bg));
}
} else if (bg is Number) {
self.bgColor(bg);
}
}
public static function useFontText(fontName:String):void {
self.useText(fontName);
}
/**
* If using RetrocamelBitmapText sets the scale to size,
* if using Text sets the fontSize to size
*/
public static function setSize(size:uint):void {
self.setSize(size);
}
/**
* If using RetrocamelBitmapText sets the coloring,
* if using Text sets the font color
*/
public static function setColor(color:uint):void {
self.setColor(color);
}
// ::::::::::::::::::::::::::::::::::::::::::::::
// :: Display
// ::::::::::::::::::::::::::::::::::::::::::::::
public static function show(o:*):void {
if (o is Event) {
_onHookOver(o);
}
else {
self.setText(_hooksList[o]);
self._hide = false;
}
}
/**
* Manually hide the Tooltip. It doesn't stop Tooltip from appearing again!
*/
public static function hide():void {
self._hide = true;
}
public static function retrieveTextObject():RetrocamelTextField {
return self._text;
}
/****************************************************************************************************************/
/** PRIVATE */
/****************************************************************************************************************/
private var _RetrocamelBitmapText:RetrocamelBitmapText;
private var _text:RetrocamelTextField;
private var _txt:DisplayObject;
/****************************************************************************************************************/
/** INSTANCE */
private var _bgGrid:RetrocamelGrid9;
private var _bgPrecieGrid:RetrocamelPreciseGrid9;
private var _bgColor:uint = 0;
private var _hide:Boolean = true;
private var _paddingTop:int = 5;
private var _paddingRight:int = 5;
private var _paddingBottom:int = 5;
private var _paddingLeft:int = 5;
private var _useText:Boolean = false;
public function RetrocamelTooltip() {
self = this;
this.blendMode = BlendMode.LAYER;
_RetrocamelBitmapText = new RetrocamelBitmapText();
_RetrocamelBitmapText.align = 1;
_RetrocamelBitmapText.multiline = true;
_text = new RetrocamelTextField("", "font", 14);
_text.width = 1;
_text.height = 1;
_text.autoSizeCenter();
_text.alignCenter();
_text.visible = false;
_txt = _RetrocamelBitmapText;
addChild(_RetrocamelBitmapText);
addChild(_text);
alpha = 0;
this.mouseEnabled = false;
this.mouseChildren = false;
}
public function useText(font:String):void {
if (_useText) {
return;
}
_useText = true;
_text.font = font;
_text.visible = true;
_RetrocamelBitmapText.visible = false;
_txt = _text;
setText(_RetrocamelBitmapText.text);
_text.apply();
}
public function setSize(size:uint):void {
if (_useText) {
_text.size = size;
}
else {
_RetrocamelBitmapText.setScale(size);
}
}
public function setColor(color:uint):void {
if (_useText) {
_text.color = color;
}
else {
_RetrocamelBitmapText.color = color;
}
}
public function setText(text:String):void {
if (_useText) {
setTextText(text);
}
else {
setTextRetrocamelBitmapText(text);
}
if (_bgGrid) {
_bgGrid.width = _txt.width + _paddingLeft + _paddingRight;
_bgGrid.height = _txt.height + _paddingTop + _paddingBottom;
_bgGrid.x = 0;
_bgGrid.y = 0;
} else if (_bgPrecieGrid) {
_bgPrecieGrid.width = _txt.width + _paddingLeft + _paddingRight;
_bgPrecieGrid.height = _txt.height + _paddingTop + _paddingBottom;
_bgPrecieGrid.x = 0;
_bgPrecieGrid.y = 0;
} else {
graphics.clear();
graphics.beginFill(_bgColor);
graphics.drawRect(0,
0,
_txt.width + _paddingLeft + _paddingRight,
_txt.height + _paddingTop + _paddingBottom);
}
}
public function bgColor(color:uint):void {
_bgColor = color;
}
public function bgGrid(grid9:RetrocamelGrid9):void {
if (_bgGrid) {
removeChild(_bgGrid);
}
_bgGrid = grid9;
if (_bgGrid) {
addChildAt(_bgGrid, 0);
}
}
public function bgPreciseGrid(grid9:RetrocamelPreciseGrid9):void {
if (_bgPrecieGrid) {
removeChild(_bgPrecieGrid);
}
_bgPrecieGrid = grid9;
if (_bgPrecieGrid) {
addChildAt(_bgPrecieGrid, 0);
}
}
private function setTextText(text:String):void {
_text.width = 1;
_text.height = 1;
_text.textAlignCenter();
_text.autoSizeLeft();
_text.text = text;
_text.apply();
_text.x = _paddingLeft;
_text.y = _paddingTop;
}
private function setTextRetrocamelBitmapText(text:String):void {
_RetrocamelBitmapText.x = _paddingLeft;
_RetrocamelBitmapText.y = _paddingTop;
_RetrocamelBitmapText.text = text;
}
/****************************************************************************************************************/
private static function _onHookOver(e:MouseEvent):void {
self.setText(_hooksList[e.target]);
self._hide = false;
}
private static function _onHookOut(e:MouseEvent):void {
self._hide = true;
}
private static function _onHookRemove(e:Event):void {
e.target.removeEventListener(MouseEvent.ROLL_OVER, _onHookOver);
e.target.removeEventListener(MouseEvent.ROLL_OUT, _onHookOut);
e.target.removeEventListener(Event.REMOVED_FROM_STAGE, _onHookRemove);
}
retrocamel_int function update(event:Event):void {
if (_hide) {
if (alpha > 0) {
alpha -= 0.125;
}
} else if (alpha < 1) {
alpha += 0.125;
}
x = (RetrocamelDisplayManager._flashStage.mouseX - RetrocamelDisplayManager.offsetX) / RetrocamelDisplayManager.scaleX - _txt.width / 2 - (_paddingLeft + _paddingRight) / 2 | 0;
y = (RetrocamelDisplayManager._flashStage.mouseY - RetrocamelDisplayManager.offsetY) / RetrocamelDisplayManager.scaleY - _txt.height - _paddingTop - _paddingBottom - 8 | 0;
if (x < 0) {
x = 0;
}
if (x + width > RetrocamelCore.settings.gameWidth) {
x = RetrocamelCore.settings.gameWidth - width;
}
if (y < 0) {
y = 0;
}
if (y + height > RetrocamelCore.settings.gameHeight) {
y = RetrocamelCore.settings.gameHeight - height;
}
}
}
}
| 32.981183
| 189
| 0.512919
|
183d0dbffb1d7b422a824c1edf6f820fed0a03b1
| 3,115
|
as
|
ActionScript
|
lfc-src/swf11/LzHistoryService.as
|
raju-bitter/openlaszlo-flashbuilder-project
|
0c1f59de3f250ecfa0f1306dc00b37685379d73a
|
[
"MIT",
"Unlicense"
] | 1
|
2015-11-04T12:50:38.000Z
|
2015-11-04T12:50:38.000Z
|
lfc-src/swf11/LzHistoryService.as
|
raju-bitter/openlaszlo-flashbuilder-project
|
0c1f59de3f250ecfa0f1306dc00b37685379d73a
|
[
"MIT",
"Unlicense"
] | null | null | null |
lfc-src/swf11/LzHistoryService.as
|
raju-bitter/openlaszlo-flashbuilder-project
|
0c1f59de3f250ecfa0f1306dc00b37685379d73a
|
[
"MIT",
"Unlicense"
] | null | null | null |
package {
import flash.net.SharedObject;
public final class LzHistoryService extends LzEventable {
public static var LzHistory:LzHistoryService;function LzHistoryService () {
super()
}LzHistoryService.LzHistory = new LzHistoryService();var ready:Boolean = false;var onready:LzDeclaredEventClass = LzDeclaredEvent;var persist:Boolean = false;var _persistso:SharedObject = null;var offset:Number = 0;var __lzdirty:Boolean = false;var __lzhistq:Array = [];var __lzcurrstate:Object = {};var capabilities:* = LzSprite.capabilities;var onoffset:LzDeclaredEventClass = LzDeclaredEvent;function receiveHistory ($0:*):Number {
if (this.persist && !this._persistso) {
this.__initPersist()
};
var $1:int = this.__lzhistq.length;
var $2:Number = $0 * 1;
if (!$2) {
$2 = 0
} else if ($2 > $1 - 1) {
$2 = $1
};
var $3:Object = this.__lzhistq[$2];
for (var $4:String in $3) {
var $5:Object = $3[$4];
global[$5.c].setAttribute($5.n, $5.v)
};
this.offset = $2;
if (this.onoffset.ready) this.onoffset.sendEvent($2);
return $2
}function receiveEvent ($0:String, $1:*):void {
canvas.setAttribute($0, $1)
}function getCanvasAttribute ($0:String):* {
return canvas[$0]
}function setCanvasAttribute ($0:String, $1:*):void {
this.receiveEvent($0, $1)
}function callMethod ($0:String):* {
return LzBrowserKernel.callMethod($0)
}function save ($0:*, $1:String, $2:*):void {
if (typeof $0 != "string") {
if ($0["id"]) $0 = $0["id"];
if (!$0) return
};
if ($2 == null) $2 = global[$0][$1];
this.__lzcurrstate[$0] = {c: $0, n: $1, v: $2};
this.__lzdirty = true
}function commit ():void {
if (!this.__lzdirty) return;
this.__lzhistq[this.offset] = this.__lzcurrstate;
this.__lzhistq.length = this.offset + 1;
if (this.persist) {
if (!this._persistso) {
this.__initPersist()
};
this._persistso.data[this.offset] = this.__lzcurrstate
};
this.__lzcurrstate = {};
this.__lzdirty = false
}function move ($0:int = 1):void {
this.commit();
var $1:Number = this.offset + $0;
if (0 >= $1) $1 = 0;
if (this.__lzhistq.length >= $1) {
LzBrowserKernel.setHistory($1)
}}function next ():void {
this.move(1)
}function prev ():void {
this.move(-1)
}function __initPersist ():void {
if (this.persist) {
if (!this._persistso) {
this._persistso = LzBrowserKernel.getPersistedObject("historystate")
};
if (this._persistso && this._persistso.data) {
var $0:Object = this._persistso.data;
this.__lzhistq = [];
for (var $1:String in $0) {
this.__lzhistq[$1] = $0[$1]
}}} else {
if (this._persistso) this._persistso = null
}}function clear ():void {
if (this.persist) {
if (!this._persistso) {
this._persistso = LzBrowserKernel.getPersistedObject("historystate")
};
this._persistso.clear()
};
this.__lzhistq = [];
this.offset = 0;
if (this.onoffset.ready) this.onoffset.sendEvent(0)
}function setPersist ($0:Boolean):void {
if (this.capabilities.persistence) {
this.persist = $0
}}function __start ($0:String):void {
lz.Browser.callJS("lz.embed.history.listen('" + $0 + "')");
this.ready = true;
if (this.onready.ready) this.onready.sendEvent(true)
}}
}
| 32.789474
| 435
| 0.669663
|
aecf7f4bd1002bb0d3f627f353414106e36f0540
| 7,167
|
as
|
ActionScript
|
src/com/filipesilvestrim/ai/astar/AStar.as
|
fsilvestrim/as3-ai-lib
|
3cd8f6be66980e75c5b4025a86fb1ad8bec386b0
|
[
"MIT"
] | null | null | null |
src/com/filipesilvestrim/ai/astar/AStar.as
|
fsilvestrim/as3-ai-lib
|
3cd8f6be66980e75c5b4025a86fb1ad8bec386b0
|
[
"MIT"
] | null | null | null |
src/com/filipesilvestrim/ai/astar/AStar.as
|
fsilvestrim/as3-ai-lib
|
3cd8f6be66980e75c5b4025a86fb1ad8bec386b0
|
[
"MIT"
] | null | null | null |
package com.filipesilvestrim.ai.astar
{
/**
* ...
* @author Filipe
*/
public class AStar implements IPathFind
{
private var _closed : ArrayList = new ArrayList();
private var _open : SortedList = new SortedList();
private var _map : ITileMap;
private var _maxSearchDistance : int;
private var _nodes : Vector.<Vector.<Node>>;
private var _allowDiagMovement : Boolean;
private var _heuristic : IAStarHeuristic;
public function AStar(map : ITileMap, maxSearchDistance : int, allowDiagMovement : Boolean, heuristic : IAStarHeuristic = null) {
_heuristic = heuristic || new ClosestSquared();
_map = map;
_maxSearchDistance = maxSearchDistance;
_allowDiagMovement = allowDiagMovement;
var wIT : int = _map.getWidthInTiles();
var hIT : int = _map.getHeightInTiles();
var x : int, y : int;
_nodes = new Vector.<Vector.<Node>>();
_nodes.length = wIT;
_nodes.fixed = true;
for (x = 0; x < wIT; x++)
{
_nodes[x] = new Vector.<Node>();
_nodes[x].length = hIT;
_nodes[x].fixed = true;
}
for (x = 0; x < wIT; x++)
for (y = 0; y < hIT; y++)
_nodes[x][y] = new Node(x, y);
}
protected function isValidLocation(mover : * , sx : int , sy : int , x : int , y : int) : Boolean
{
var invalid : Boolean = (x < 0) || (y < 0) || (x >= _map.getWidthInTiles()) || (y >= _map.getHeightInTiles());
if ((!invalid) && ((sx != x) || (sy != y)))
invalid = _map.blocked(mover, x, y);
return !invalid;
}
public function getMovementCost(mover : * , sx : int, sy : int, tx : int, ty : int) : Number { return _map.getCost(mover, sx, sy, tx, ty); }
public function getHeuristicCost(mover : * , x : int, y : int, tx : int, ty : int) : Number { return _heuristic.getCost(_map, mover, x, y, tx, ty); }
protected function getFirstInOpen() : Node { return _open.first(); }
protected function addToOpen(node : Node) : void { _open.add(node); }
protected function removeFromOpen(node : Node) : void { _open.remove(node); }
protected function inOpenList(node : Node) : Boolean { return _open.contains(node); }
protected function addToClosed(node : Node) : void { _closed.add(node); }
protected function inClosedList(node : Node) : Boolean { return _closed.contains(node); }
protected function removeFromClosed(node : Node): void { _closed.remove(node); }
/* INTERFACE com.ubisoft.kephren.ai.pathfind.IPathFind */
public function findPath(mover : * , sx : int, sy : int, tx : int, ty : int) : Path
{
// easy first check, if the destination is blocked, we can't get there
if (_map.blocked(mover, tx, ty))
return null;
// initial state for A*. The closed group is empty. Only the starting
// tile is in the open list and it's cost is zero, i.e. we're already there
_nodes[sx][sy].cost = 0;
_nodes[sx][sy].depth = 0;
_closed.clear();
_open.clear();
_open.add(_nodes[sx][sy]);
_nodes[tx][ty].parent = null;
// while we haven't found the goal and haven't exceeded our max search depth
var maxDepth : int = 0;
while ((maxDepth < _maxSearchDistance) && (_open.size() != 0))
{
// pull out the first node in our open list, this is determined to
// be the most likely to be the next step based on our heuristic
var current : Node = getFirstInOpen();
if (current == _nodes[tx][ty])
break;
removeFromOpen(current);
addToClosed(current);
// search through all the neighbours of the current node evaluating
// them as next steps
for (var x : int = -1; x < 2; x++)
{
for (var y : int = -1; y < 2; y++)
{
// not a neighbour, its the current tile
if ((x == 0) && (y == 0))
continue;
// if we're not allowing diaganol movement then only
// one of x or y can be set
if (!_allowDiagMovement)
if ((x != 0) && (y != 0))
continue;
// determine the location of the neighbour and evaluate it
var xp : int = x + current.x;
var yp : int = y + current.y;
if (isValidLocation(mover, sx, sy, xp, yp))
{
// the cost to get to this node is cost the current plus the movement
// cost to reach this node. Note that the heursitic value is only used
// in the sorted open list
var nextStepCost : Number = current.cost + getMovementCost(mover, current.x, current.y, xp, yp);
var neighbour : Node = _nodes[xp][yp];
_map.pathFinderVisited(xp, yp);
// if the new cost we've determined for this node is lower than
// it has been previously makes sure the node hasn't been discarded. We've
// determined that there might have been a better path to get to
// this node so it needs to be re-evaluated
if (nextStepCost < neighbour.cost)
{
if (inOpenList(neighbour))
removeFromOpen(neighbour);
if (inClosedList(neighbour))
removeFromClosed(neighbour);
}
// if the node hasn't already been processed and discarded then
// reset it's cost to our current cost and add it as a next possible
// step (i.e. to the open list)
if (!inOpenList(neighbour) && !(inClosedList(neighbour)))
{
neighbour.cost = nextStepCost;
neighbour.heuristic = getHeuristicCost(mover, xp, yp, tx, ty);
maxDepth = Math.max(maxDepth, neighbour.setParent(current));
addToOpen(neighbour);
}
}
}
}
}
// since we've got an empty open list or we've run out of search
// there was no path. Just return null
if (_nodes[tx][ty].parent == null)
return null;
// At this point we've definitely found a path so we can uses the parent
// references of the nodes to find out way from the target location back
// to the start recording the nodes on the way.
var path : Path = new Path();
var target : Node = _nodes[tx][ty];
while (target != _nodes[sx][sy])
{
path.prependStep(target.x, target.y);
target = target.parent;
}
path.prependStep(sx,sy);
// thats it, we have our path
return path;
}
}
}
class Node
{
internal var x : int;
internal var y : int;
internal var depth : int;
internal var cost : Number;
internal var heuristic : Number;
internal var parent : Node;
public function Node(p_x : int, p_y : int)
{
x = p_x;
y = p_y;
}
public function setParent(p_parent : Node) : int
{
depth = p_parent.depth + 1;
parent = p_parent;
return depth;
}
public function compareTo(p_other : *) : int
{
var o : Node = p_other as Node;
var f : Number = heuristic + cost;
var of : Number = o.heuristic + o.cost;
if (f < of) return -1;
else if (f > of) return 1;
else return 0;
}
}
| 32.726027
| 153
| 0.586438
|
fd59ee7f6ad67e559b55702586f0f448e98ba173
| 1,956
|
as
|
ActionScript
|
src/parse/Token.as
|
softplat/ascript
|
7b39425a0ac72a778123871bddf23235230d97d9
|
[
"Apache-2.0"
] | 33
|
2015-01-13T02:59:17.000Z
|
2021-06-18T13:40:49.000Z
|
src/parse/Token.as
|
weimingtom/ascript
|
7b39425a0ac72a778123871bddf23235230d97d9
|
[
"Apache-2.0"
] | 7
|
2017-08-18T06:12:47.000Z
|
2018-04-06T13:50:07.000Z
|
src/parse/Token.as
|
weimingtom/ascript
|
7b39425a0ac72a778123871bddf23235230d97d9
|
[
"Apache-2.0"
] | 13
|
2015-01-28T03:14:48.000Z
|
2020-07-30T07:59:15.000Z
|
package parse
{
public class Token
{
public static var wordpatten:String = "|static|as|is|instanceof|extends|in|package|for|var|new|class|function|if|else|while|return|import|public|private|protected|switch|case|break|continue|default|try|catch|finally|each|";
public var type:int;
public var value;
public var word:String;
public var line:int = 0;
var linestr:String = "";
public var index:int;
public function Token()
{
super();
}
public static function iskeyword(str:String) : Boolean
{
if(Token.wordpatten.indexOf("|" + str + "|") >= 0)
{
return true;
}
return false;
}
public static function getTypeName(str:String) : String
{
if(iskeyword(str))
{
return "TokenType.key" + str;
}
return "TokenType." + getDec(str);
}
public static function getDec(str:String) : String
{
if(str == "(")
{
return "LParent";
}
if(str == ")")
{
return "RParent";
}
if(str == "{")
{
return "LBRACE";
}
if(str == "}")
{
return "RBRACE";
}
if(str == "[")
{
return "LBRACKET";
}
if(str == "]")
{
return "RBRACKET";
}
if(str == ".")
{
return "DOT";
}
if(str == ",")
{
return "COMMA";
}
if(str == ";")
{
return "Semicolon";
}
if(str == ":")
{
return "Colon";
}
return str;
}
public function getLine() : String
{
return this.linestr;
}
}
}
| 20.808511
| 229
| 0.409509
|
6cc23ed8b4603ee2a159b83f3a30b7c0937926aa
| 1,264
|
as
|
ActionScript
|
3XMobile/src/framework/sound/ValueRange.as
|
602147629/3xGame
|
dbee66de2a3d50ab8165b6d1c18d37051de396ec
|
[
"MIT"
] | 1
|
2021-01-08T05:12:52.000Z
|
2021-01-08T05:12:52.000Z
|
3XMobile/src/framework/sound/ValueRange.as
|
602147629/3xGame
|
dbee66de2a3d50ab8165b6d1c18d37051de396ec
|
[
"MIT"
] | null | null | null |
3XMobile/src/framework/sound/ValueRange.as
|
602147629/3xGame
|
dbee66de2a3d50ab8165b6d1c18d37051de396ec
|
[
"MIT"
] | 1
|
2022-03-15T10:05:00.000Z
|
2022-03-15T10:05:00.000Z
|
package framework.sound
{
import framework.types.helpers.StringUtils;
public class ValueRange
{
private var min:Number;
private var max:Number;
private var value:Number;
public function ValueRange(min:Number, max:Number)
{
this.min = min;
this.max = max;
if (min > max)
{
trace("ALERT: Min value is greater than max value: " + toString());
}
randomize();
}
public function randomize() : void
{
if (max == min)
{
value = min;
}
else
{
value = Math.random()*(max-min) + min;
}
}
public function getValue() : Number
{
return value;
}
public function multiplyBy(number:Number):void
{
min *= number;
max *= number;
}
public function add(number:Number) : void
{
min += number;
max += number;
}
public static function makeFromString(value:String):ValueRange
{
if (StringUtils.isNullOrEmpty(value))
{
return new ValueRange(0,0);
}
else
{
var rangeStrings:Array = value.split("-");
var min:Number = rangeStrings[0];
var max:Number = rangeStrings.length > 1 ? rangeStrings[1] : min;
return new ValueRange(min, max);
}
}
public function toString() : String
{
return min + "," + max;
}
}
}
| 16.853333
| 71
| 0.602848
|
c4dd4d25df7d88a812e4755c1338149b42de5f05
| 4,800
|
as
|
ActionScript
|
GotoCoreGame/src/starling/extensions/pixelmask/PixelMaskDisplayObject.as
|
varadig/GotoCoreAS3
|
806f8ec0c394fcd8c2fd973ea7553ed4ff1fcd47
|
[
"MIT"
] | 1
|
2021-06-10T00:37:05.000Z
|
2021-06-10T00:37:05.000Z
|
GotoCoreGame/src/starling/extensions/pixelmask/PixelMaskDisplayObject.as
|
varadig/GotoCoreAS3
|
806f8ec0c394fcd8c2fd973ea7553ed4ff1fcd47
|
[
"MIT"
] | null | null | null |
GotoCoreGame/src/starling/extensions/pixelmask/PixelMaskDisplayObject.as
|
varadig/GotoCoreAS3
|
806f8ec0c394fcd8c2fd973ea7553ed4ff1fcd47
|
[
"MIT"
] | null | null | null |
package starling.extensions.pixelmask
{
import flash.display3D.Context3DBlendFactor;
import flash.geom.Matrix;
import starling.core.RenderSupport;
import starling.core.Starling;
import starling.display.BlendMode;
import starling.display.DisplayObject;
import starling.display.DisplayObjectContainer;
import starling.display.Image;
import starling.events.Event;
import starling.textures.RenderTexture;
public class PixelMaskDisplayObject extends DisplayObjectContainer
{
private static const MASK_MODE_NORMAL:String = "mask";
private static const MASK_MODE_INVERTED:String = "maskinverted";
private var _mask:DisplayObject;
private var _renderTexture:RenderTexture;
private var _maskRenderTexture:RenderTexture;
private var _image:Image;
private var _maskImage:Image;
private var _superRenderFlag:Boolean = false;
private var _inverted:Boolean = false;
private var _scaleFactor:Number;
private var _isAnimated:Boolean = true;
private var _maskRendered:Boolean = false;
public function PixelMaskDisplayObject(scaleFactor:Number=-1, isAnimated:Boolean=true)
{
super();
_isAnimated = isAnimated;
_scaleFactor = scaleFactor;
BlendMode.register(MASK_MODE_NORMAL, Context3DBlendFactor.ZERO, Context3DBlendFactor.SOURCE_ALPHA);
BlendMode.register(MASK_MODE_INVERTED, Context3DBlendFactor.ZERO, Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA);
// Handle lost context. By using the conventional event, we can make a weak listener.
// This avoids memory leaks when people forget to call "dispose" on the object.
Starling.current.stage3D.addEventListener(Event.CONTEXT3D_CREATE,
onContextCreated, false, 0, true);
}
public function get isAnimated():Boolean
{
return _isAnimated;
}
public function set isAnimated(value:Boolean):void
{
_isAnimated = value;
}
override public function dispose():void
{
clearRenderTextures();
Starling.current.stage3D.removeEventListener(Event.CONTEXT3D_CREATE, onContextCreated);
super.dispose();
}
private function onContextCreated(event:Object):void
{
refreshRenderTextures();
}
public function get inverted():Boolean
{
return _inverted;
}
public function set inverted(value:Boolean):void
{
_inverted = value;
refreshRenderTextures(null);
}
override public function set mask(mask:DisplayObject) : void
{
// clean up existing mask if there is one
if (_mask) {
_mask = null;
}
if (mask) {
_mask = mask;
if (_mask.width==0 || _mask.height==0) {
throw new Error ("Mask must have dimensions. Current dimensions are " + _mask.width + "x" + _mask.height + ".");
}
refreshRenderTextures(null);
} else {
clearRenderTextures();
}
}
private function clearRenderTextures() : void
{
// clean up old render textures and images
if (_maskRenderTexture) {
_maskRenderTexture.dispose();
}
if (_renderTexture) {
_renderTexture.dispose();
}
if (_image) {
_image.dispose();
}
if (_maskImage) {
_maskImage.dispose();
}
}
private function refreshRenderTextures(e:Event=null) : void
{
if (_mask) {
clearRenderTextures();
_maskRenderTexture = new RenderTexture(_mask.width, _mask.height, false, _scaleFactor);
_renderTexture = new RenderTexture(_mask.width, _mask.height, false, _scaleFactor);
// create image with the new render texture
_image = new Image(_renderTexture);
// create image to blit the mask onto
_maskImage = new Image(_maskRenderTexture);
// set the blending mode to MASK (ZERO, SRC_ALPHA)
if (_inverted) {
_maskImage.blendMode = MASK_MODE_INVERTED;
} else {
_maskImage.blendMode = MASK_MODE_NORMAL;
}
}
_maskRendered = false;
}
public override function render(support:RenderSupport, parentAlpha:Number):void
{
if (_isAnimated || (!_isAnimated && !_maskRendered)) {
if (_superRenderFlag || !_mask) {
super.render(support, parentAlpha);
} else {
if (_mask) {
_maskRenderTexture.draw(_mask);
_renderTexture.drawBundled(drawRenderTextures);
_image.render(support, parentAlpha);
_maskRendered = true;
}
}
} else {
_image.render(support, parentAlpha);
}
}
private function drawRenderTextures() : void
{
// undo scaling and positioning temporarily because its already applied in this execution stack
var matrix:Matrix = this.transformationMatrix.clone();
this.transformationMatrix = new Matrix();
_superRenderFlag = true;
_renderTexture.draw(this);
_superRenderFlag = false;
this.transformationMatrix = matrix;
_renderTexture.draw(_maskImage);
}
}
}
| 26.519337
| 117
| 0.703542
|
027ca9ff5a6faecea68e1d49a810f6aa2313f51f
| 866
|
as
|
ActionScript
|
src/utils/draw/createRectangleShape.as
|
wpsmith/as3-utils
|
838aad249f53afcfb88c2cdbba7004b07b1637e7
|
[
"MIT"
] | 55
|
2015-01-13T10:20:25.000Z
|
2021-07-27T21:14:19.000Z
|
src/utils/draw/createRectangleShape.as
|
wpsmith/as3-utils
|
838aad249f53afcfb88c2cdbba7004b07b1637e7
|
[
"MIT"
] | null | null | null |
src/utils/draw/createRectangleShape.as
|
wpsmith/as3-utils
|
838aad249f53afcfb88c2cdbba7004b07b1637e7
|
[
"MIT"
] | 19
|
2015-01-13T10:18:40.000Z
|
2021-04-06T01:38:56.000Z
|
package utils.draw
{
import flash.display.Graphics;
import flash.display.Shape;
/**
* Create a shape that is a simple solid color-filled rectangle
*
* @param width Width of the rectangle
* @param height Height of the rectangle
* @param color Color of the rectangle. Default is black.
* @param alpha Alpha of the rectangle. Default is full opacity.
* @param x Initial x position
* @param y Initial y position
* @return The created shape
* @author Jackson Dunstan, modified by Mims Wright
*/
public function createRectangleShape(width:uint, height:uint, color:uint = 0, alpha:Number = 1, x:Number = 0, y:Number = 0):Shape
{
var rect:Shape = new Shape();
var g:Graphics = rect.graphics;
g.beginFill(color, alpha);
g.drawRect(0, 0, width, height);
g.endFill();
rect.x = x;
rect.y = y;
return rect;
}
}
| 27.0625
| 130
| 0.674365
|
f2af562132003832b8a71068d5379523cb057dfb
| 3,785
|
as
|
ActionScript
|
src.framework/net/retrocade/retrocamel/core/RetrocamelWindowsManager.as
|
RetrocadeNet/galaxus
|
999cc99fa23ce1561e3069d757cba0e496bdeca5
|
[
"MIT"
] | null | null | null |
src.framework/net/retrocade/retrocamel/core/RetrocamelWindowsManager.as
|
RetrocadeNet/galaxus
|
999cc99fa23ce1561e3069d757cba0e496bdeca5
|
[
"MIT"
] | null | null | null |
src.framework/net/retrocade/retrocamel/core/RetrocamelWindowsManager.as
|
RetrocadeNet/galaxus
|
999cc99fa23ce1561e3069d757cba0e496bdeca5
|
[
"MIT"
] | null | null | null |
package net.retrocade.retrocamel.core {
import flash.display.DisplayObject;
import flash.display.Sprite;
import net.retrocade.retrocamel.display.layers.RetrocamelLayerFlashSprite;
import net.retrocade.retrocamel.interfaces.IRetrocamelWindow;
use namespace retrocamel_int;
public class RetrocamelWindowsManager extends Sprite {
/**
* Array containing all currently displayed windows
*/
private static var _windows:Vector.<IRetrocamelWindow> = new Vector.<IRetrocamelWindow>();
private static var _flashLayer:RetrocamelLayerFlashSprite;
/**
* True if there is a window which should pause the game
*/
private static var _pauseGame:Boolean = false;
private static var _isBlocking:Boolean = false;
public static function get numWindows():int {
return _windows.length;
}
/**
* True if there is a window which should pause the game
*/
public static function get pauseGame():Boolean {
return _pauseGame;
}
public static function get isBlocking():Boolean {
return _isBlocking;
}
public static function hookFlashLayer(layer:RetrocamelLayerFlashSprite):void {
_flashLayer = layer;
}
/**
* Removes last added window
*/
public static function removeLastWindow():void {
var l:uint = _windows.length;
if (l == 0) {
return;
}
_windows[l - 1].hide();
}
/**
* Removes all windows
*/
public static function clearWindows():void {
while (_windows.length) {
removeLastWindow();
}
}
/**
* Updates windows related stuff to
*/
private static function validateWindowsNow():void {
_isBlocking = false;
var window:IRetrocamelWindow;
_pauseGame = false;
for (var i:int = _windows.length - 1; i >= 0; --i) {
window = _windows[i];
if (_isBlocking) {
window.block();
} else {
window.unblock();
}
_pauseGame = window.pauseGame || _pauseGame;
_isBlocking = window.blockUnder || _isBlocking;
}
if (_isBlocking || _pauseGame) {
RetrocamelDisplayManager.block();
} else {
RetrocamelDisplayManager.unblock();
}
if (_flashLayer) {
_flashLayer.inputEnabled = true;
}
}
/**
* @private
* Adds given window to the display
* @param window Window to be added
*/
retrocamel_int static function addWindow(window:IRetrocamelWindow):void {
if (_windows.indexOf(window) != -1) {
return;
}
if (window is DisplayObject) {
_flashLayer.add(window as DisplayObject);
}
_windows.push(window);
validateWindowsNow();
}
/**
* @private
* Removes given window from the display
* @param window Window to be removed
*/
retrocamel_int static function removeWindow(window:IRetrocamelWindow):void {
var index:uint = _windows.indexOf(window);
if (index == -1) {
return;
}
if (window is DisplayObject) {
_flashLayer.remove(window as DisplayObject);
}
_windows.splice(index, 1);
validateWindowsNow();
}
retrocamel_int static function pushLayersToFront():void {
if (_flashLayer) {
RetrocamelDisplayManager.pullLayerToFront(_flashLayer);
}
}
retrocamel_int static function update():void {
if (!_windows.length) {
return;
}
var window:IRetrocamelWindow;
for (var i:int = _windows.length - 1; i >= 0; --i) {
window = _windows[i];
if (!window.isBlocked()) {
window.update();
}
}
}
retrocamel_int static function onStageResize():void {
for each(var window:IRetrocamelWindow in _windows) {
if (window) {
window.resize();
}
}
}
public static function removeAllWindowsButLast():void {
while (_windows.length > 1) {
_windows[0].hide();
}
}
public static function get flashLayer():RetrocamelLayerFlashSprite {
return _flashLayer;
}
}
}
| 21.752874
| 92
| 0.67107
|
9ae2b041465bb5dd7f7bf157af182e13d7350dbb
| 5,876
|
as
|
ActionScript
|
frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/DropDownList.as
|
jmegonzalez/royale-asjs
|
bd5cbefc187fd9d650b93e89f684ce13f986729b
|
[
"ECL-2.0",
"Apache-2.0"
] | 306
|
2017-10-05T14:28:14.000Z
|
2022-01-25T09:30:45.000Z
|
frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/DropDownList.as
|
joseRamonLeon/royale-asjs
|
4dfa86ec6907da834fb5df7e5dc28e48ba65cbeb
|
[
"Apache-2.0",
"MIT"
] | 995
|
2017-09-29T16:42:20.000Z
|
2022-03-30T11:06:36.000Z
|
frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/DropDownList.as
|
joseRamonLeon/royale-asjs
|
4dfa86ec6907da834fb5df7e5dc28e48ba65cbeb
|
[
"Apache-2.0",
"MIT"
] | 132
|
2017-11-02T00:07:24.000Z
|
2022-01-31T11:53:31.000Z
|
////////////////////////////////////////////////////////////////////////////////
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////////
package org.apache.royale.mdl
{
import org.apache.royale.core.IItemRenderer;
import org.apache.royale.core.ISelectionModel;
import org.apache.royale.core.UIBase;
import org.apache.royale.events.ItemAddedEvent;
import org.apache.royale.html.DataContainer;
import org.apache.royale.html.elements.Select;
import org.apache.royale.mdl.beads.UpgradeElement;
import org.apache.royale.mdl.beads.models.IDropDownListModel;
COMPILE::JS
{
import org.apache.royale.core.WrappedHTMLElement;
import org.apache.royale.html.util.addElementToWrapper;
}
[Event(name="change", type="org.apache.royale.events.Event")]
/**
* The DropDownList class is a component that displays label field and
* Select with Options. Selecting an item from the pop-up list
* places that item into the label field of the DropDownList.
*
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion Royale 0.8
*/
public class DropDownList extends DataContainer
{
/**
* Constructor.
*
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion Royale 0.8
*/
public function DropDownList()
{
super();
typeNames = 'mdl-textfield mdl-js-textfield';
addBead(new UpgradeElement());
}
private var _prompt:String = "";
/**
* The prompt for the DropDownList control.
*
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion Royale 0.9
*/
public function get prompt():String
{
return _prompt;
}
public function set prompt(value:String):void
{
_prompt = value;
}
protected var _dropDown:Select;
public function get dropDown():Select
{
return _dropDown;
}
public function set dropDown(value:Select):void
{
_dropDown = value;
}
COMPILE::JS
{
protected var _labelDisplay:HTMLLabelElement;
/**
* @royaleignorecoercion HTMLLabelElement
*/
public function get labelDisplay():HTMLLabelElement
{
return _labelDisplay;
}
/**
* @royaleignorecoercion HTMLLabelElement
*/
public function set labelDisplay(value:HTMLLabelElement):void
{
_labelDisplay = value;
}
}
[Bindable("change")]
/**
* @copy org.apache.royale.core.IDropDownListModel#selectedValue
*
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion Royale 0.9
*/
public function get selectedValue():String
{
return IDropDownListModel(model).selectedValue;
}
public function set selectedValue(value:String):void
{
IDropDownListModel(model).selectedValue = value;
}
[Bindable("change")]
/**
* @copy org.apache.royale.core.ISelectionModel#selectedIndex
*
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion Royale 0.8
*/
public function get selectedIndex():int
{
return ISelectionModel(model).selectedIndex;
}
public function set selectedIndex(value:int):void
{
ISelectionModel(model).selectedIndex = value;
}
[Bindable("change")]
/**
* @copy org.apache.royale.core.ISelectionModel#selectedItem
*
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion Royale 0.8
*/
public function get selectedItem():Object
{
return ISelectionModel(model).selectedItem;
}
public function set selectedItem(value:Object):void
{
ISelectionModel(model).selectedItem = value;
}
/**
* @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement
*/
COMPILE::JS
override protected function createElement():WrappedHTMLElement
{
element = super.createElement();
element.classList.add("mdl-textfield--floating-label");
return element;
}
}
}
| 31.42246
| 81
| 0.552417
|
19f0739d67be2b3a04b58a9d8ccf684e7ca61992
| 6,569
|
as
|
ActionScript
|
flash/fft2/export/fl/motion/MatrixTransformer3D.as
|
opikalo/pyfire
|
1a56a39532e1a1d6ca938f46ca5f8eb09fb43957
|
[
"MIT"
] | 1
|
2015-06-03T18:05:54.000Z
|
2015-06-03T18:05:54.000Z
|
flash/fft2/export/fl/motion/MatrixTransformer3D.as
|
opikalo/pyfire
|
1a56a39532e1a1d6ca938f46ca5f8eb09fb43957
|
[
"MIT"
] | null | null | null |
flash/fft2/export/fl/motion/MatrixTransformer3D.as
|
opikalo/pyfire
|
1a56a39532e1a1d6ca938f46ca5f8eb09fb43957
|
[
"MIT"
] | 2
|
2017-03-30T13:17:27.000Z
|
2019-02-19T12:21:04.000Z
|
package fl.motion
{
import flash.geom.Matrix3D;
import flash.geom.Vector3D;
public class MatrixTransformer3D extends Object
{
public function MatrixTransformer3D()
{
super();
}
public static const AXIS_X:int = 0;
public static const AXIS_Y:int = 1;
public static const AXIS_Z:int = 2;
public static function rotateAboutAxis(param1:Number, param2:int) : Matrix3D
{
var _loc3_:Number = Math.cos(param1);
var _loc4_:Number = Math.sin(param1);
var _loc5_:Vector.<Number> = new Vector.<Number>();
switch(param2)
{
case AXIS_X:
_loc5_[0] = 1;
_loc5_[1] = 0;
_loc5_[2] = 0;
_loc5_[3] = 0;
_loc5_[4] = 0;
_loc5_[5] = _loc3_;
_loc5_[6] = _loc4_;
_loc5_[7] = 0;
_loc5_[8] = 0;
_loc5_[9] = -_loc4_;
_loc5_[10] = _loc3_;
_loc5_[11] = 0;
_loc5_[12] = 0;
_loc5_[13] = 0;
_loc5_[14] = 0;
_loc5_[15] = 1;
break;
case AXIS_Y:
_loc5_[0] = _loc3_;
_loc5_[1] = 0;
_loc5_[2] = -_loc4_;
_loc5_[3] = 0;
_loc5_[4] = 0;
_loc5_[5] = 1;
_loc5_[6] = 0;
_loc5_[7] = 0;
_loc5_[8] = _loc4_;
_loc5_[9] = 0;
_loc5_[10] = _loc3_;
_loc5_[11] = 0;
_loc5_[12] = 0;
_loc5_[13] = 0;
_loc5_[14] = 0;
_loc5_[15] = 1;
break;
case AXIS_Z:
_loc5_[0] = _loc3_;
_loc5_[1] = _loc4_;
_loc5_[2] = 0;
_loc5_[3] = 0;
_loc5_[4] = -_loc4_;
_loc5_[5] = _loc3_;
_loc5_[6] = 0;
_loc5_[7] = 0;
_loc5_[8] = 0;
_loc5_[9] = 0;
_loc5_[10] = 1;
_loc5_[11] = 0;
_loc5_[12] = 0;
_loc5_[13] = 0;
_loc5_[14] = 0;
_loc5_[15] = 1;
break;
}
return new Matrix3D(_loc5_);
}
public static function getVector(param1:Matrix3D, param2:int) : Vector3D
{
switch(param2)
{
case 0:
return new Vector3D(param1.rawData[0],param1.rawData[1],param1.rawData[2],param1.rawData[3]);
case 1:
return new Vector3D(param1.rawData[4],param1.rawData[5],param1.rawData[6],param1.rawData[7]);
case 2:
return new Vector3D(param1.rawData[8],param1.rawData[9],param1.rawData[10],param1.rawData[11]);
case 3:
return new Vector3D(param1.rawData[12],param1.rawData[13],param1.rawData[14],param1.rawData[15]);
default:
return new Vector3D(0,0,0,0);
}
}
public static function getMatrix3D(param1:Vector3D, param2:Vector3D, param3:Vector3D, param4:Vector3D) : Matrix3D
{
var _loc5_:Vector.<Number> = new Vector.<Number>();
_loc5_[0] = param1.x;
_loc5_[1] = param1.y;
_loc5_[2] = param1.z;
_loc5_[3] = param1.w;
_loc5_[4] = param2.x;
_loc5_[5] = param2.y;
_loc5_[6] = param2.z;
_loc5_[7] = param2.w;
_loc5_[8] = param3.x;
_loc5_[9] = param3.y;
_loc5_[10] = param3.z;
_loc5_[11] = param3.w;
_loc5_[12] = param4.x;
_loc5_[13] = param4.y;
_loc5_[14] = param4.z;
_loc5_[15] = param4.w;
return new Matrix3D(_loc5_);
}
public static function rotateAxis(param1:Matrix3D, param2:Number, param3:int) : Matrix3D
{
var _loc7_:Vector3D = null;
var _loc8_:Array = null;
var _loc9_:* = 0;
var _loc10_:Vector.<Number> = null;
var _loc11_:Vector3D = null;
var _loc4_:Matrix3D = new Matrix3D();
var _loc5_:Vector3D = getVector(param1,param3);
_loc4_.prependRotation(param2 * 180 / Math.PI,_loc5_);
var _loc6_:* = 0;
while(_loc6_ < 3)
{
if(_loc6_ != param3)
{
_loc7_ = getVector(param1,_loc6_);
_loc8_ = new Array(3);
_loc9_ = 0;
while(_loc9_ < 3)
{
_loc11_ = getVector(_loc4_,_loc9_);
_loc8_[_loc9_] = _loc7_.dotProduct(_loc11_);
_loc9_++;
}
_loc7_.x = _loc8_[0];
_loc7_.y = _loc8_[1];
_loc7_.z = _loc8_[2];
_loc7_.w = 0;
_loc7_ = normalizeVector(_loc7_);
_loc10_ = Vector.<Number>(getRawDataVector(param1));
_loc10_[_loc6_ * 4] = _loc7_.x;
_loc10_[_loc6_ * 4 + 1] = _loc7_.y;
_loc10_[_loc6_ * 4 + 2] = _loc7_.z;
_loc10_[_loc6_ * 4 + 3] = _loc7_.w;
param1 = new Matrix3D(Vector.<Number>(_loc10_));
}
_loc6_++;
}
return param1;
}
public static function normalizeVector(param1:Vector3D) : Vector3D
{
var _loc2_:Number = 1 / param1.length;
var _loc3_:Vector3D = new Vector3D();
_loc3_.x = param1.x * _loc2_;
_loc3_.y = param1.y * _loc2_;
_loc3_.z = param1.z * _loc2_;
_loc3_.w = param1.w;
return _loc3_;
}
public static function getRawDataVector(param1:Matrix3D) : Vector.<Number>
{
var _loc2_:Vector.<Number> = new Vector.<Number>();
_loc2_[0] = param1.rawData[0];
_loc2_[1] = param1.rawData[1];
_loc2_[2] = param1.rawData[2];
_loc2_[3] = param1.rawData[3];
_loc2_[4] = param1.rawData[4];
_loc2_[5] = param1.rawData[5];
_loc2_[6] = param1.rawData[6];
_loc2_[7] = param1.rawData[7];
_loc2_[8] = param1.rawData[8];
_loc2_[9] = param1.rawData[9];
_loc2_[10] = param1.rawData[10];
_loc2_[11] = param1.rawData[11];
_loc2_[12] = param1.rawData[12];
_loc2_[13] = param1.rawData[13];
_loc2_[14] = param1.rawData[14];
_loc2_[15] = param1.rawData[15];
return _loc2_;
}
}
}
| 33.01005
| 119
| 0.469326
|
598d45952d48e2380559dfd097b73cd0e7e9ce23
| 1,882
|
as
|
ActionScript
|
src/org/openPyro/utils/XMLUtil.as
|
arpit/openpyro
|
a07ae768e1ed324b77c3b68d57d8bf6eeaef36a4
|
[
"MIT"
] | 1
|
2015-11-05T01:01:44.000Z
|
2015-11-05T01:01:44.000Z
|
src/org/openPyro/utils/XMLUtil.as
|
arpit/openpyro
|
a07ae768e1ed324b77c3b68d57d8bf6eeaef36a4
|
[
"MIT"
] | null | null | null |
src/org/openPyro/utils/XMLUtil.as
|
arpit/openpyro
|
a07ae768e1ed324b77c3b68d57d8bf6eeaef36a4
|
[
"MIT"
] | null | null | null |
package org.openPyro.utils{
/**
* A collection of Utility methods for working with XML
*/
public class XMLUtil
{
/**
* Returns a boolean whether the newNode exists
* anywhere deeper in the item node. For example
* to find node
*
* <pre>
* <deepNode>one</deepNode>
* </pre>
*
* in something like
*
* <pre>
* <parent>
* <node1>
* <node2>
* ` <node3>
* <deepNode>one</deepNode>
* </node3>
* </node2>
* </node1>
* </parent>
* </pre>
*/
public static function isItemParentOf(item:XML, newNode:XML):Boolean{
if(item.contains(newNode)) return true;
var foundAsChild:Boolean = false
for(var i:int=0; i<item.children().length(); i++){
foundAsChild = isItemParentOf(item.children()[i],newNode)
if(foundAsChild){
break;
}
}
return foundAsChild;
}
// Source:http://www.nuff-respec.com/technology/sort-xml-by-attribute-in-actionscript-3
public static function sortXMLByAttribute(
$xml : XML,
$attribute : String,
$options : Object = null,
$copy : Boolean = false
)
:XML
{
//store in array to sort on
var xmlArray:Array = new Array();
var item:XML;
for each(item in $xml.children())
{
var object:Object = {
data : item,
order : item.attribute($attribute)
};
xmlArray.push(object);
}
//sort using the power of Array.sortOn()
xmlArray.sortOn('order',$options);
//create a new XMLList with sorted XML
var sortedXmlList:XMLList = new XMLList();
var xmlObject:Object;
for each(xmlObject in xmlArray )
{
sortedXmlList += xmlObject.data;
}
if($copy)
{
//don't modify original
return $xml.copy().setChildren(sortedXmlList);
}
else
{
//original modified
return $xml.setChildren(sortedXmlList);
}
}
}
}
| 21.386364
| 89
| 0.595112
|
6f50193c1ed536f838b318867d657ef0ac9f7dc3
| 4,989
|
as
|
ActionScript
|
data/DofusInvoker/scripts/com/ankamagames/dofus/network/messages/game/guild/tax/TaxCollectorAttackedResultMessage.as
|
LucBerge/Datafus
|
6ff545662c99f5f727c5a8522da853fbbd99782a
|
[
"MIT"
] | 10
|
2019-11-10T21:24:38.000Z
|
2021-05-24T23:56:36.000Z
|
data/DofusInvoker/scripts/com/ankamagames/dofus/network/messages/game/guild/tax/TaxCollectorAttackedResultMessage.as
|
LucBerge/Datafus
|
6ff545662c99f5f727c5a8522da853fbbd99782a
|
[
"MIT"
] | 15
|
2021-01-27T21:41:58.000Z
|
2021-03-03T16:47:19.000Z
|
data/DofusInvoker/scripts/com/ankamagames/dofus/network/messages/game/guild/tax/TaxCollectorAttackedResultMessage.as
|
LucBerge/Datafus
|
6ff545662c99f5f727c5a8522da853fbbd99782a
|
[
"MIT"
] | 1
|
2021-04-05T23:22:53.000Z
|
2021-04-05T23:22:53.000Z
|
package com.ankamagames.dofus.network.messages.game.guild.tax
{
import com.ankamagames.dofus.network.types.game.context.roleplay.BasicGuildInformations;
import com.ankamagames.dofus.network.types.game.guild.tax.TaxCollectorBasicInformations;
import com.ankamagames.jerakine.network.CustomDataWrapper;
import com.ankamagames.jerakine.network.ICustomDataInput;
import com.ankamagames.jerakine.network.ICustomDataOutput;
import com.ankamagames.jerakine.network.INetworkMessage;
import com.ankamagames.jerakine.network.NetworkMessage;
import com.ankamagames.jerakine.network.utils.FuncTree;
import flash.utils.ByteArray;
public class TaxCollectorAttackedResultMessage extends NetworkMessage implements INetworkMessage
{
public static const protocolId:uint = 9157;
private var _isInitialized:Boolean = false;
public var deadOrAlive:Boolean = false;
public var basicInfos:TaxCollectorBasicInformations;
public var guild:BasicGuildInformations;
private var _basicInfostree:FuncTree;
private var _guildtree:FuncTree;
public function TaxCollectorAttackedResultMessage()
{
this.basicInfos = new TaxCollectorBasicInformations();
this.guild = new BasicGuildInformations();
super();
}
override public function get isInitialized() : Boolean
{
return this._isInitialized;
}
override public function getMessageId() : uint
{
return 9157;
}
public function initTaxCollectorAttackedResultMessage(deadOrAlive:Boolean = false, basicInfos:TaxCollectorBasicInformations = null, guild:BasicGuildInformations = null) : TaxCollectorAttackedResultMessage
{
this.deadOrAlive = deadOrAlive;
this.basicInfos = basicInfos;
this.guild = guild;
this._isInitialized = true;
return this;
}
override public function reset() : void
{
this.deadOrAlive = false;
this.basicInfos = new TaxCollectorBasicInformations();
this._isInitialized = false;
}
override public function pack(output:ICustomDataOutput) : void
{
var data:ByteArray = new ByteArray();
this.serialize(new CustomDataWrapper(data));
writePacket(output,this.getMessageId(),data);
}
override public function unpack(input:ICustomDataInput, length:uint) : void
{
this.deserialize(input);
}
override public function unpackAsync(input:ICustomDataInput, length:uint) : FuncTree
{
var tree:FuncTree = new FuncTree();
tree.setRoot(input);
this.deserializeAsync(tree);
return tree;
}
public function serialize(output:ICustomDataOutput) : void
{
this.serializeAs_TaxCollectorAttackedResultMessage(output);
}
public function serializeAs_TaxCollectorAttackedResultMessage(output:ICustomDataOutput) : void
{
output.writeBoolean(this.deadOrAlive);
this.basicInfos.serializeAs_TaxCollectorBasicInformations(output);
this.guild.serializeAs_BasicGuildInformations(output);
}
public function deserialize(input:ICustomDataInput) : void
{
this.deserializeAs_TaxCollectorAttackedResultMessage(input);
}
public function deserializeAs_TaxCollectorAttackedResultMessage(input:ICustomDataInput) : void
{
this._deadOrAliveFunc(input);
this.basicInfos = new TaxCollectorBasicInformations();
this.basicInfos.deserialize(input);
this.guild = new BasicGuildInformations();
this.guild.deserialize(input);
}
public function deserializeAsync(tree:FuncTree) : void
{
this.deserializeAsyncAs_TaxCollectorAttackedResultMessage(tree);
}
public function deserializeAsyncAs_TaxCollectorAttackedResultMessage(tree:FuncTree) : void
{
tree.addChild(this._deadOrAliveFunc);
this._basicInfostree = tree.addChild(this._basicInfostreeFunc);
this._guildtree = tree.addChild(this._guildtreeFunc);
}
private function _deadOrAliveFunc(input:ICustomDataInput) : void
{
this.deadOrAlive = input.readBoolean();
}
private function _basicInfostreeFunc(input:ICustomDataInput) : void
{
this.basicInfos = new TaxCollectorBasicInformations();
this.basicInfos.deserializeAsync(this._basicInfostree);
}
private function _guildtreeFunc(input:ICustomDataInput) : void
{
this.guild = new BasicGuildInformations();
this.guild.deserializeAsync(this._guildtree);
}
}
}
| 35.635714
| 211
| 0.657046
|
c20527284cdf03392addfaf0bc1621442f45d74a
| 257
|
as
|
ActionScript
|
common1/src/formatalias.as
|
nexttouches/age_client
|
c2c9b0f95aa2bd2c95afc20ddcf38ac33b92a5c9
|
[
"MIT"
] | 3
|
2019-08-17T04:42:42.000Z
|
2021-04-07T19:10:31.000Z
|
common1/src/formatalias.as
|
nexttouches/age_client
|
c2c9b0f95aa2bd2c95afc20ddcf38ac33b92a5c9
|
[
"MIT"
] | null | null | null |
common1/src/formatalias.as
|
nexttouches/age_client
|
c2c9b0f95aa2bd2c95afc20ddcf38ac33b92a5c9
|
[
"MIT"
] | 1
|
2015-07-03T03:29:48.000Z
|
2015-07-03T03:29:48.000Z
|
package
{
public class formatalias
{
private static var aliases:Object = {};
public static function register(alias:String, o:*):void
{
aliases[alias] = o;
}
public static function get(alias:String):*
{
return aliases[alias];
}
}
}
| 13.526316
| 57
| 0.649805
|
57e0259bbc0762c74663c31a1c9bef5948752baa
| 5,011
|
as
|
ActionScript
|
GameXueLe/src/geometry/manager/LayerLineManager.as
|
wudixiaozi135/geometry
|
7703d2fb2c48270c8e0f8afbd151499f9945479a
|
[
"Apache-2.0"
] | null | null | null |
GameXueLe/src/geometry/manager/LayerLineManager.as
|
wudixiaozi135/geometry
|
7703d2fb2c48270c8e0f8afbd151499f9945479a
|
[
"Apache-2.0"
] | null | null | null |
GameXueLe/src/geometry/manager/LayerLineManager.as
|
wudixiaozi135/geometry
|
7703d2fb2c48270c8e0f8afbd151499f9945479a
|
[
"Apache-2.0"
] | null | null | null |
/**
* Created by Administrator on 2015/7/23 0023.
*/
package geometry.manager
{
import com.senocular.display.TransformToolInternalControl;
import com.senocular.display.TransformToolMoveShape;
import flash.display.Stage;
import flash.events.MouseEvent;
import flash.geom.Point;
import geometry.interfaces.IShape;
import geometry.pattern.messages.MessageConst;
import geometry.ui.MatchPointUI;
import geometry.ui.PenUI;
import geometry.ui.ShapeContainerUI;
import geometry.ui.shapes.PolygonShape;
import geometry.ui.shapes.Vertex;
public class LayerLineManager
{
private var _panelUI:ShapeContainerUI;
private var _startX:Number = 0;
private var _startY:Number = 0;
private var _endX:Number = 0;
private var _endY:Number = 0;
private var _stage:Stage;
public function LayerLineManager()
{
}
public function init(stage:Stage):void
{
_stage = stage;
_panelUI = ShapeContainerUI.getInstance;
_stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown, false, 0, true);
_stage.addEventListener(MouseEvent.CLICK, onMouseClick, false, 0, true);
}
private function onMouseClick(event:MouseEvent):void
{
if (TransformShapeManager.isShowRotateFrame)
{
var target:Object = event.target;
var bool:Boolean = (target is TransformToolMoveShape) || (target is TransformToolInternalControl);
if (bool == false)
{
TransformShapeManager.getInstance.reset();
}
}
}
private function onMouseDown(event:MouseEvent):void
{
var target:Object = event.target;
trace("eventTarget: ", event.currentTarget, event.target);
var isExcludeObj:Boolean = (target is Vertex) || (target is TransformToolMoveShape);
if (isExcludeObj)
{
if (TransformShapeManager.isShowRotateFrame)
{
TransformShapeManager.getInstance.reset();
var arr:Array = _stage.getObjectsUnderPoint(new Point(event.stageX, event.stageY));
for each(var obj:* in arr)
{
if (obj is PolygonShape)
{
obj.startDrag(false);
obj.addEventListener(MouseEvent.MOUSE_UP, function ():void
{
obj.removeEventListener(MouseEvent.MOUSE_UP, arguments.callee);
obj.stopDrag();
}, false, 100, true);
break;
}
}
}
return;
}
if (target is TransformToolInternalControl)
return;
if (target is IShape)
{
var shape:IShape = target as IShape;
if (shape.canClick(event.localX, event.localY))
{
return;
}
}
_stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove, false, 0, true);
_stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
_startX = event.stageX;
_startY = event.stageY;
IntersectPointManager.getInstance.startPoint = new Point(_startX, _startY);
}
private function onMouseUp(event:MouseEvent):void
{
_stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
_stage.removeEventListener(MouseEvent.MOUSE_UP, onMouseUp);
_endX = event.stageX;
_endY = event.stageY;
IntersectPointManager.getInstance.endPoint = new Point(_endX, _endY);
var count:int = checkInterSect();
if (count <= 0)
{
IntersectPointManager.getInstance.startPoint = null;
IntersectPointManager.getInstance.endPoint = null;
}
PenUI.getInstance.clear(PenUI.PEN_STYLE_GREEN);
if (count > 1)
{
ShapeContainerUI.getInstance.notify(null, MessageConst.DRAW_LINE_UP);
MatchPointUI.getInstance.cancelMatchLine();
}
}
private function onMouseMove(event:MouseEvent):void
{
_endX = event.stageX;
_endY = event.stageY;
MouseTargetManager.currentTarget = event.currentTarget;
MouseTargetManager.target = event.target;
IntersectPointManager.getInstance.endPoint = new Point(_endX, _endY);
PenUI.getInstance.drawLine(_startX, _startY, _endX, _endY, PenUI.PEN_STYLE_GREEN);
var count:int = checkInterSect();
var penIndex:int = LayerManager.getInstance.getLayerLevel(PenUI.getInstance);
var shapeIndex:int = LayerManager.getInstance.getLayerLevel(ShapeContainerUI.getInstance);
if (count > 0 && count % 2 == 0)
{
if (penIndex > shapeIndex)
{
LayerManager.getInstance.setLayerLevel(PenUI.getInstance, shapeIndex);
}
} else
{
if (penIndex < shapeIndex)
{
LayerManager.getInstance.setLayerLevel(PenUI.getInstance, shapeIndex);
}
}
}
/**返回交点数*/
private function checkInterSect():int
{
var intersectCount:int = 0;
var shapeDatas:Vector.<IShape> = MemShapeManager.getInstance.shapeVectors;
for (var i:int = 0, len:int = shapeDatas.length; i < len; i++)
{
var shape:IShape = shapeDatas[i];
intersectCount += IntersectPointManager.getInstance.checkIntersectPoint(shape.globalVertexDatas, shape);
}
return intersectCount;
}
private static var _instance:LayerLineManager = null;
public static function get getInstance():LayerLineManager
{
if (_instance == null)
{
_instance = new LayerLineManager();
}
return _instance;
}
}
}
| 27.233696
| 108
| 0.712632
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.