Class ProposalDocument
A Document that displays some set of information from a Proposal, customizable through the MultiPageDocumentUI gameobject.
Inherited Members
Namespace: GDA.GameDocuments
Assembly: Assembly-CSharp.dll
Syntax
public class ProposalDocument : Document
Constructors
ProposalDocument()
Declaration
public ProposalDocument()
ProposalDocument(DocMiniUI, MultiPageDocumentUI)
Declaration
public ProposalDocument(DocMiniUI miniView, MultiPageDocumentUI multiView)
Parameters
| Type | Name | Description |
|---|---|---|
| DocMiniUI | miniView | |
| MultiPageDocumentUI | multiView |
Properties
fullView
Declaration
protected MultiPageDocumentUI fullView { get; }
Property Value
| Type | Description |
|---|---|
| MultiPageDocumentUI |
Methods
LoadProduct(Proposal, Boolean)
Loads the proposal to display. Internally, calls DocumentSection.LoadProposal(Proposal, Boolean) for every DocumentSection in the document.
Declaration
public void LoadProduct(Proposal proposal, bool isProductA)
Parameters
| Type | Name | Description |
|---|---|---|
| Proposal | proposal | |
| System.Boolean | isProductA |
OnBeginDrag(PointerEventData, DocumentUI)
The actual implementation of the IBeginDragHandler interface that both miniView and fullView will call.
Declaration
public override void OnBeginDrag(PointerEventData eventData, DocumentUI docUI)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEngine.EventSystems.PointerEventData | eventData | |
| DocumentUI | docUI | The DocumentUI that is calling this method. (miniView or fullView) |
Overrides
OnEndDrag(PointerEventData, DocumentUI)
The actual implementation of the IEndDragHandler interface that both miniView and fullView will call.
Declaration
public override void OnEndDrag(PointerEventData eventData, DocumentUI docUI)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEngine.EventSystems.PointerEventData | eventData | |
| DocumentUI | docUI | The DocumentUI that is calling this method. (miniView or fullView) |
Overrides
OnPointerClick(PointerEventData, DocumentUI)
The actual implementation of the IPointerClickHandler interface that both miniView and fullView will call.
Declaration
public override void OnPointerClick(PointerEventData eventData, DocumentUI docUI)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEngine.EventSystems.PointerEventData | eventData | |
| DocumentUI | docUI | The DocumentUI that is calling this method. (miniView or fullView) |